26 $this->directory = $directory;
34 return $this->directory->isFile($this->
path);
41 return pathinfo($this->
path, PATHINFO_BASENAME);
50 return $this->directory->getContents($this->
path);
57 return pathinfo($this->
path, PATHINFO_EXTENSION);
68 return $this->directory->includeFile($this->
path);
A simple directory abstraction.
__construct(Directory $directory, $path)
Constructor.
$CONFIG path
The full path where Elgg is installed.
getContents()
Get the text content of this file.
Represents a file that may or may not actually exist.
includeFile()
Do a PHP include of the file and return the result.