You are here

interface PoStreamInterface in Localization update 7.2

Common functions for file/stream based PO readers/writers.

Hierarchy

Expanded class hierarchy of PoStreamInterface

All classes that implement PoStreamInterface

See also

PoReaderInterface

PoWriterInterface

File

includes/gettext/PoStreamInterface.php, line 14
Definition of Drupal\Component\Gettext\PoStreamInterface.

View source
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 string
   *   URI string for this stream.
   */
  public function getURI();

  /**
   * Set the URI of the PO stream that is going to be read or written.
   *
   * @param string $uri
   *   URI string to set for this stream.
   */
  public function setURI($uri);

}

Members

Namesort descending Modifiers Type Description Overrides
PoStreamInterface::close public function Close the stream. 2
PoStreamInterface::getURI public function Get the URI of the PO stream that is being read or written. 2
PoStreamInterface::open public function Open the stream. Set the URI for the stream earlier with setURI(). 2
PoStreamInterface::setURI public function Set the URI of the PO stream that is going to be read or written. 2