ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
createFile ($name, $data=null) | |
Creates a new file in the directory. More... | |
createDirectory ($name) | |
Creates a new subdirectory. More... | |
getChild ($name) | |
Returns a specific child node, referenced by its name. More... | |
getChildren () | |
Returns an array with all the child nodes. More... | |
childExists ($name) | |
Checks if a child exists. More... | |
delete () | |
Deletes all files in this directory, and then itself. More... | |
getQuotaInfo () | |
Returns available diskspace information. More... | |
Public Member Functions inherited from Sabre\DAV\FS\Node | |
__construct ($path) | |
Sets up the node, expects a full path name. More... | |
getName () | |
Returns the name of the node. More... | |
setName ($name) | |
Renames the node. More... | |
getLastModified () | |
Returns the last modification time, as a unix timestamp. More... | |
Additional Inherited Members | |
Protected Attributes inherited from Sabre\DAV\FS\Node | |
$path | |
Directory class.
Definition at line 14 of file Directory.php.
Sabre\DAV\FS\Directory::childExists | ( | $name | ) |
Checks if a child exists.
string | $name |
Implements Sabre\DAV\ICollection.
Definition at line 118 of file Directory.php.
References $name, and Sabre\DAV\FS\Node\$path.
Sabre\DAV\FS\Directory::createDirectory | ( | $name | ) |
Creates a new subdirectory.
string | $name |
Implements Sabre\DAV\ICollection.
Definition at line 54 of file Directory.php.
References $name.
Sabre\DAV\FS\Directory::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.
The returned ETag must be surrounded by double-quotes (The quotes should be part of the actual string).
If you cannot accurately determine the ETag, you should not return it. If you don't store the file exactly as-is (you're transforming it somehow) you should also not return an ETag.
This means that if a subsequent GET to this new file does not exactly return the same contents of what was submitted here, you are strongly recommended to omit the ETag.
string | $name | Name of the file |
resource | string | $data | Initial payload |
Implements Sabre\DAV\ICollection.
Definition at line 40 of file Directory.php.
Sabre\DAV\FS\Directory::delete | ( | ) |
Deletes all files in this directory, and then itself.
Implements Sabre\DAV\INode.
Definition at line 130 of file Directory.php.
References Sabre\DAV\FS\Directory\getChildren().
Sabre\DAV\FS\Directory::getChild | ( | $name | ) |
Returns a specific child node, referenced by its name.
This method must throw DAV if the node does not exist.
string | $name |
DAV |
Implements Sabre\DAV\ICollection.
Definition at line 72 of file Directory.php.
References $name, and Sabre\DAV\FS\Node\$path.
Referenced by Sabre\DAV\FS\Directory\getChildren().
Sabre\DAV\FS\Directory::getChildren | ( | ) |
Returns an array with all the child nodes.
Implements Sabre\DAV\ICollection.
Definition at line 95 of file Directory.php.
References $nodes, and Sabre\DAV\FS\Directory\getChild().
Referenced by Sabre\DAV\FS\Directory\delete().
Sabre\DAV\FS\Directory::getQuotaInfo | ( | ) |
Returns available diskspace information.
Implements Sabre\DAV\IQuota.
Definition at line 142 of file Directory.php.