Represents a file that may or may not actually exist.
More...
Represents a file that may or may not actually exist.
- Since
- 1.10.0
private
Definition at line 11 of file File.php.
Elgg\Filesystem\File::__construct |
( |
Directory |
$directory, |
|
|
|
$path |
|
) |
| |
Constructor.
- Parameters
-
Directory | $directory | The directory where this file resides |
string | $path | The path to this file relative to the directory |
Definition at line 25 of file File.php.
Elgg\Filesystem\File::__toString |
( |
| ) |
|
Elgg\Filesystem\File::exists |
( |
| ) |
|
- Returns
- boolean Whether this file exists.
Definition at line 33 of file File.php.
Elgg\Filesystem\File::getBasename |
( |
| ) |
|
- Returns
- string The file's basename.
Definition at line 40 of file File.php.
Elgg\Filesystem\File::getContents |
( |
| ) |
|
Get the text content of this file.
Empty string if it doesn't exist.
- Returns
- string
Definition at line 49 of file File.php.
Elgg\Filesystem\File::getExtension |
( |
| ) |
|
- Returns
- string The file's extension.
Definition at line 56 of file File.php.
Elgg\Filesystem\File::includeFile |
( |
| ) |
|
Do a PHP include of the file and return the result.
TODO(ewinslow): This may only work for local filesystems?
- Returns
- mixed
Definition at line 67 of file File.php.
The documentation for this class was generated from the following file: