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... | |
childExists ($name) | |
Checks if a child exists. More... | |
getChildren () | |
Returns an array with all the child nodes. More... | |
delete () | |
Deletes all files in this directory, and then itself. More... | |
getQuotaInfo () | |
Returns available diskspace information. More... | |
moveInto ($targetName, $sourcePath, DAV\INode $sourceNode) | |
Moves a node into this collection. 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... | |
Public Member Functions inherited from Sabre\DAV\IMoveTarget | |
moveInto ($targetName, $sourcePath, INode $sourceNode) | |
Moves a node into this collection. More... | |
Additional Inherited Members | |
Protected Attributes inherited from Sabre\DAV\FS\Node | |
$path | |
Directory class.
Definition at line 15 of file Directory.php.
Sabre\DAV\FSExt\Directory::childExists | ( | $name | ) |
Checks if a child exists.
string | $name |
Implements Sabre\DAV\ICollection.
Definition at line 108 of file Directory.php.
References $name, and Sabre\DAV\FS\Node\$path.
Sabre\DAV\FSExt\Directory::createDirectory | ( | $name | ) |
Creates a new subdirectory.
string | $name |
Implements Sabre\DAV\ICollection.
Definition at line 63 of file Directory.php.
References $name.
Sabre\DAV\FSExt\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 41 of file Directory.php.
Sabre\DAV\FSExt\Directory::delete | ( | ) |
Deletes all files in this directory, and then itself.
Implements Sabre\DAV\INode.
Definition at line 146 of file Directory.php.
References Sabre\DAV\FSExt\Directory\getChildren().
Sabre\DAV\FSExt\Directory::getChild | ( | $name | ) |
Returns a specific child node, referenced by its name.
This method must throw Sabre if the node does not exist.
string | $name |
DAV |
Implements Sabre\DAV\ICollection.
Definition at line 83 of file Directory.php.
References $name, and Sabre\DAV\FS\Node\$path.
Referenced by Sabre\DAV\FSExt\Directory\getChildren().
Sabre\DAV\FSExt\Directory::getChildren | ( | ) |
Returns an array with all the child nodes.
Implements Sabre\DAV\ICollection.
Definition at line 123 of file Directory.php.
References $nodes, and Sabre\DAV\FSExt\Directory\getChild().
Referenced by Sabre\DAV\FSExt\Directory\delete().
Sabre\DAV\FSExt\Directory::getQuotaInfo | ( | ) |
Returns available diskspace information.
Implements Sabre\DAV\IQuota.
Definition at line 163 of file Directory.php.
References $total.
Sabre\DAV\FSExt\Directory::moveInto | ( | $targetName, | |
$sourcePath, | |||
DAV\INode | $sourceNode | ||
) |
Moves a node into this collection.
It is up to the implementors to:
Generally you should make very sure that your collection can easily move the move.
If you don't, just return false, which will trigger sabre/dav to handle the move itself. If you return true from this function, the assumption is that the move was successful.
string | $targetName | New local file/collection name. |
string | $sourcePath | Full path to source node |
DAV\INode | $sourceNode | Source node itself |
Definition at line 194 of file Directory.php.