Elgg  Version 1.11
Directory.php
Go to the documentation of this file.
1 <?php
2 namespace Elgg\Filesystem;
3 
11 interface Directory {
12 
20  public function chroot($path);
21 
29  public function getContents($path);
30 
40  public function getFile($path);
41 
49  public function getFiles($path = '');
50 
60  public function includeFile($path);
61 
69  public function isFile($path);
70 
79  public function putContents($path, $content);
80 }
A simple directory abstraction.
Definition: Directory.php:11
getFile($path)
A reference to the file at the given path, even if it doesn&#39;t exist yet.
getFiles($path= '')
Recursively list the files in the given directory path.
isFile($path)
Whether this directory has an existing file at the given location.
includeFile($path)
Do a PHP include of the file and return the result.
putContents($path, $content)
Write a file, overwriting the contents if necessary.
getContents($path)
Read the file off the filesystem.
chroot($path)
Returns a subdirectory with access limited to the given directory.
$content
Set robots.txt action.
Definition: set_robots.php:6
$path
Definition: invalid.php:17