ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class ilObjContainerDAV. More...
Public Member Functions | |
__construct (ilContainer $a_obj, ilWebDAVRepositoryHelper $repo_helper, ilWebDAVObjDAVHelper $dav_helper) | |
Check if given object has valid type and calls parent constructor. More... | |
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-node with the specified name exists. More... | |
getChildCollectionType () | |
Return the type for child collections of this collection For courses, groups and folders the type is 'fold' For categories the type is 'cat'. More... | |
![]() | |
__construct (ilObject $a_obj, ilWebDAVRepositoryHelper $repo_helper, ilWebDAVObjDAVHelper $dav_helper) | |
Constructor for DAV Object. More... | |
getRefId () | |
Returns the ref id of this object. More... | |
getObjectId () | |
Returns the object id of this object. More... | |
getLastModified () | |
Returns the last modification time as a unix timestamp. More... | |
delete () | |
Deletes the current node. More... | |
setName ($a_name) | |
Renames the node. More... | |
getName () | |
SabreDAV interface function Returns the name of the node.This is used to generate the url.
| |
getObject () | |
Returns ILIAS Object. More... | |
![]() | |
getLastModified () | |
Returns the last modification time as a unix timestamp. More... | |
delete () | |
Deletes the current node. More... | |
setName ($name) | |
Renames the node. More... | |
Additional Inherited Members | |
![]() | |
$ref_id | |
$obj | |
$repo_helper | |
$dav_helper | |
Class ilObjContainerDAV.
Base implementation for container objects to be represented as WebDAV collection.
Definition at line 21 of file class.ilObjContainerDAV.php.
ilObjContainerDAV::__construct | ( | ilContainer | $a_obj, |
ilWebDAVRepositoryHelper | $repo_helper, | ||
ilWebDAVObjDAVHelper | $dav_helper | ||
) |
Check if given object has valid type and calls parent constructor.
ilContainer | $a_obj |
Definition at line 28 of file class.ilObjContainerDAV.php.
ilObjContainerDAV::childExists | ( | $name | ) |
Checks if a child-node with the specified name exists.
string | $name |
Implements Sabre\DAV\ICollection.
Definition at line 204 of file class.ilObjContainerDAV.php.
References $name, and getChildCollectionType().
Referenced by createFile().
ilObjContainerDAV::createDirectory | ( | $name | ) |
Creates a new subdirectory.
string | $name |
NotImplemented |
Implements Sabre\DAV\ICollection.
Definition at line 105 of file class.ilObjContainerDAV.php.
References $DIC, $name, $type, getChildCollectionType(), and ilLoggerFactory\getLogger().
ilObjContainerDAV::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 |
Exception |
Implements Sabre\DAV\ICollection.
Definition at line 61 of file class.ilObjContainerDAV.php.
References $data, $name, childExists(), and getChild().
ilObjContainerDAV::getChild | ( | $name | ) |
Returns a specific child node, referenced by its name.
This method must throw Sabre if the node does not exist.
Exception |
Implements Sabre\DAV\ICollection.
Definition at line 149 of file class.ilObjContainerDAV.php.
References $name.
Referenced by createFile().
|
abstract |
Return the type for child collections of this collection For courses, groups and folders the type is 'fold' For categories the type is 'cat'.
Referenced by childExists(), and createDirectory().
ilObjContainerDAV::getChildren | ( | ) |
Returns an array with all the child nodes.
Implements Sabre\DAV\ICollection.
Definition at line 182 of file class.ilObjContainerDAV.php.