trait FileHandleTraitYamlFormExporter in YAML Form 8
Defines file handle exporter trait.
Hierarchy
- trait \Drupal\yamlform\Plugin\YamlFormExporter\FileHandleTraitYamlFormExporter
File
- src/
Plugin/ YamlFormExporter/ FileHandleTraitYamlFormExporter.php, line 8
Namespace
Drupal\yamlform\Plugin\YamlFormExporterView source
trait FileHandleTraitYamlFormExporter {
/**
* A file handler resource.
*
* @var resource
*/
protected $fileHandle;
/**
* {@inheritdoc}
*/
public function createExport() {
$this->fileHandle = fopen($this
->getExportFilePath(), 'w');
}
/**
* {@inheritdoc}
*/
public function openExport() {
$this->fileHandle = fopen($this
->getExportFilePath(), 'a');
}
/**
* {@inheritdoc}
*/
public function closeExport() {
fclose($this->fileHandle);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FileHandleTraitYamlFormExporter:: |
protected | property | A file handler resource. | |
FileHandleTraitYamlFormExporter:: |
public | function | ||
FileHandleTraitYamlFormExporter:: |
public | function | ||
FileHandleTraitYamlFormExporter:: |
public | function |