PoStreamWriter::open
public function PoStreamWriter::open
public PoStreamWriter::open()
Open the stream. Set the URI for the stream earlier with setURI().
Overrides PoStreamInterface::open
File
- core/lib/Drupal/Component/Gettext/PoStreamWriter.php, line 74
Class
- PoStreamWriter
- Defines a Gettext PO stream writer.
Namespace
Drupal\Component\GettextCode
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(); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Component!Gettext!PoStreamWriter.php/function/PoStreamWriter::open/8.1.x