Method | Description | |
---|---|---|
__construct ( Elgg\Filesystem\Directory $directory, string $path ) | Constructor | |
__toString ( ) | ||
exists ( ) : boolean | ||
getBasename ( ) : string | ||
getContents ( ) : string | Get the text content of this file. Empty string if it doesn't exist. | |
getExtension ( ) : string | ||
getPath ( ) : string | ||
includeFile ( ) : mixed | Do a PHP include of the file and return the result. | |
putContents ( string $content ) : void | Put content into this file. |
public __construct ( Elgg\Filesystem\Directory $directory, string $path ) | ||
$directory | Elgg\Filesystem\Directory | The directory where this file resides |
$path | string | The path to this file relative to the directory |
public getContents ( ) : string | ||
return | string |
public includeFile ( ) : mixed | ||
return | mixed |
public putContents ( string $content ) : void | ||
$content | string | File content |
return | void |