public function Generic::close in Add to Cal 8
Implements Drupal\Component\Gettext\PoStreamInterface::close().
Throws
Exception If the stream is not open.
1 call to Generic::close()
- Generic::generateStructure in src/
Plugin/ AddToCal/ Type/ Generic.php - Generates an ICS file for download
File
- src/
Plugin/ AddToCal/ Type/ Generic.php, line 76
Class
- Generic
- Provides generic calendar type (ics).
Namespace
Drupal\addtocal\Plugin\AddToCal\TypeCode
public function close() {
if ($this->_fd) {
fclose($this->_fd);
}
else {
throw new Exception('Cannot close stream that is not open.');
}
}