summaryrefslogtreecommitdiff
path: root/sites/all/modules/l10n_update/includes/gettext/PoStreamInterface.php
diff options
context:
space:
mode:
Diffstat (limited to 'sites/all/modules/l10n_update/includes/gettext/PoStreamInterface.php')
-rw-r--r--sites/all/modules/l10n_update/includes/gettext/PoStreamInterface.php42
1 files changed, 42 insertions, 0 deletions
diff --git a/sites/all/modules/l10n_update/includes/gettext/PoStreamInterface.php b/sites/all/modules/l10n_update/includes/gettext/PoStreamInterface.php
new file mode 100644
index 000000000..f8ca36eb7
--- /dev/null
+++ b/sites/all/modules/l10n_update/includes/gettext/PoStreamInterface.php
@@ -0,0 +1,42 @@
+<?php
+
+/**
+ * @file
+ * Definition of Drupal\Component\Gettext\PoStreamInterface.
+ */
+
+/**
+ * Common functions for file/stream based PO readers/writers.
+ *
+ * @see PoReaderInterface
+ * @see PoWriterInterface
+ */
+interface PoStreamInterface {
+
+ /**
+ * Open the stream. Set the URI for the stream earlier with setURI().
+ */
+ public function open();
+
+ /**
+ * Close the stream.
+ */
+ public function close();
+
+ /**
+ * Get the URI of the PO stream that is being read or written.
+ *
+ * @return
+ * URI string for this stream.
+ */
+ public function getURI();
+
+ /**
+ * Set the URI of the PO stream that is going to be read or written.
+ *
+ * @param $uri
+ * URI string to set for this stream.
+ */
+ public function setURI($uri);
+
+}