You are here

public function PoStreamWriter::open in Localization update 7.2

Implements PoStreamInterface::open().

Overrides PoStreamInterface::open

File

includes/gettext/PoStreamWriter.php, line 77
Definition of Drupal\Component\Gettext\PoStreamWriter.

Class

PoStreamWriter
Defines a Gettext PO stream writer.

Code

public function open() {

  // Open in write mode. Will overwrite the stream if it already exists.
  $this->_fd = fopen($this
    ->getURI(), 'w');

  // Write the header at the start.
  $this
    ->writeHeader();
}