Method | Description | |
---|---|---|
__construct ( string $path = null, $id = null ) | Constructs the output file. | |
append ( $content ) : |
Appends a content to the file. | |
delete ( ) : |
Deletes the file. | |
exists ( ) : boolean | Tests if file exists. | |
getId ( ) : string | ||
getMimetype ( ) : string | ||
getPath ( ) : string | ||
isEmpty ( ) | ||
moveTo ( string $path ) : |
Moves the output file to a new location. | |
setContent ( string $content ) : |
Changes the file content. | |
setId ( string $id ) : |
||
setPath ( string $path ) : |
Method | Description | |
---|---|---|
getOrCreatePath ( ) : string | Prepares path for writing. |
public __construct ( string $path = null, $id = null ) | ||
$path | string | an absolute path |
public append ( $content ) : |
||
return |
public setContent ( string $content ) : |
||
$content | string | new content to set |
return |