A text file generated from multiple chunks.
A chunked file is a \FeaturePhp\File\TextFile generated by a \FeaturePhp\Generator\ChunkGenerator. It contains some chunks of text in an undefined order. Optionally, a header and a footer can be provided.
package | Default |
---|---|
inherited_from | \FeaturePhp\File\TextFile |
__construct(string $fileTarget, string $header= ""
, string $footer= ""
, boolean $newline= true
)
inherited_from | \FeaturePhp\File\TextFile::__construct() |
---|
string
string
string
boolean
__construct(string $fileTarget)
string
append(string $content)
string
extend(\FeaturePhp\Specification\ChunkSpecification $chunkSpecification) : array<mixed,\FeaturePhp\Place\Place>
This is expected to be called only be a \FeaturePhp\Generator\ChunkGenerator. Only uses the text of the chunk specification.
inherited_from | \FeaturePhp\File\ExtendFile::extend() |
---|
\FeaturePhp\Specification\ChunkSpecification
array<mixed,\FeaturePhp\Place\Place>
fromSpecification(\FeaturePhp\Specification\ChunkSpecification $chunkSpecification) : \FeaturePhp\File\ChunkFile
See \FeaturePhp\Specification\ChunkSpecification for details.
\FeaturePhp\Specification\ChunkSpecification
\FeaturePhp\File\ChunkFile
getContent() : \FeaturePhp\File\TextFileContent
The content consists of the header, then every chunk and then the footer.
inherited_from | \FeaturePhp\File\TextFile::getContent() |
---|
\FeaturePhp\File\TextFileContent
getContent() : \FeaturePhp\File\FileContent
getTarget() : string
string
$content : string
$fileTarget : string
$header : string
$newline : boolean