RedDirectory class.
More...
RedDirectory class.
A class that represents a directory.
RedDirectory::__construct |
( |
|
$ext_path, |
|
|
& |
$auth_plugin |
|
) |
| |
Sets up the directory node, expects a full path.
- Parameters
-
RedDirectory::childExists |
( |
|
$name | ) |
|
Checks if a child exists.
- Parameters
-
- Returns
- boolean
RedDirectory::createDirectory |
( |
|
$name | ) |
|
Creates a new subdirectory.
- Parameters
-
string | $name | the directory to create |
- Returns
- void
RedDirectory::createFile |
( |
|
$name, |
|
|
|
$data = null |
|
) |
| |
Creates a new file in the directory.
Data will either be supplied as a stream resource, or in certain cases as a string. Keep in mind that you may have to support either.
After successful creation of the file, you may choose to return the ETag of the new file here.
- Exceptions
-
- Parameters
-
string | $name | Name of the file |
resource | string | $data | Initial payload |
- Returns
- null|string ETag
RedDirectory::getChild |
( |
|
$name | ) |
|
Returns a child by name.
- Exceptions
-
DAV\Exception\Forbidden | |
DAV\Exception\NotFound | |
- Parameters
-
RedDirectory::getChildren |
( |
| ) |
|
Returns an array with all the child nodes.
- Exceptions
-
- Returns
- array DAV[]
- Todo:
- add description of what this function does.
- Exceptions
-
- Returns
- void
Referenced by __construct().
RedDirectory::getLastModified |
( |
| ) |
|
Returns the last modification time for the directory, as a UNIX timestamp.
It looks for the last edited file in the folder. If it is an empty folder it returns the lastmodified time of the folder itself, to prevent zero timestamps.
- Returns
- int last modification time in UNIX timestamp
RedDirectory::getName |
( |
| ) |
|
Returns the name of the directory.
- Returns
- string
RedDirectory::getQuotaInfo |
( |
| ) |
|
Return quota usage.
Do guests relly see the used/free values from filesystem of the complete store directory?
- Returns
- array with used and free values in bytes.
RedDirectory::setName |
( |
|
$name | ) |
|
Renames the directory.
- Todo:
- handle duplicate directory name
- Exceptions
-
- Parameters
-
string | $name | The new name of the directory. |
- Returns
- void
RedDirectory::$folder_hash |
|
private |
RedDirectory::$os_path = '' |
|
private |
RedDirectory::$root_dir = '' |
|
private |
The documentation for this class was generated from the following file: