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);
67 return pathinfo($this->
path, PATHINFO_EXTENSION);
74 return $this->directory->getPath($this->
path);
85 return $this->directory->includeFile($this->
path);
A simple directory abstraction.
putContents($content)
Put content into this file.
__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.
$content
Set robots.txt action.