On this page
public function PoStreamReader::close
public PoStreamReader::close()
Implements Drupal\Component\Gettext\PoStreamInterface::close().
Throws
Exception If the stream is not open.
Overrides PoStreamInterface::close
File
- core/lib/Drupal/Component/Gettext/PoStreamReader.php, line 168
Class
- PoStreamReader
- Implements Gettext PO stream reader.
Namespace
Drupal\Component\GettextCode
public function close() {
if ($this->_fd) {
fclose($this->_fd);
}
else {
throw new \Exception('Cannot close stream that is not open.');
}
}
© 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!PoStreamReader.php/function/PoStreamReader::close/8.1.x