A stored file's content.
Because stored files may contain binary data, they are not read with the likes of file_get_contents.
package | Default |
---|---|
inherited_from | \FeaturePhp\File\FileContent |
__construct(string $fileSource)
string
addToZip(\ZipArchive $zip, string $target)
This is expected to be called only be a \FeaturePhp\Exporter\ZipExporter.
inherited_from | \FeaturePhp\File\FileContent::addToZip() |
---|
\ZipArchive
string
the file target in the ZIP archive
addToZip(\ZipArchive $zip, string $target)
This is expected to be called only be a \FeaturePhp\Exporter\ZipExporter.
\ZipArchive
string
the file target in the ZIP archive
copy(string $target)
This is expected to be called only be a \FeaturePhp\Exporter\LocalExporter.
inherited_from | \FeaturePhp\File\FileContent::copy() |
---|
string
the file target in the filesystem
copy(string $target)
This is expected to be called only be a \FeaturePhp\Exporter\LocalExporter.
string
the file target in the filesystem
getFileSource() : string
string
getSummary() : string
This returns no content of the stored file.
inherited_from | \FeaturePhp\File\FileContent::getSummary() |
---|
string
getSummary() : string
The summary should be suitable for an overview of generated files, but does not necessarily contain the complete file content.
string
$fileSource : string