|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class ilObjContainerDAV. More...
Inheritance diagram for ilObjContainerDAV:
Collaboration diagram for ilObjContainerDAV: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... | |
Public Member Functions inherited from ilObjectDAV | |
| __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... | |
| delete () | |
| Deleted the current node. 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... | |
| 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... | |
Additional Inherited Members | |
Protected Attributes inherited from ilObjectDAV | |
| $ref_id | |
| $obj | |
| $repo_helper | |
| $dav_helper | |
Class ilObjContainerDAV.
Base implementation for container objects to be represented as WebDAV collection.
\DAV\ICollection
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.
References ilObjectDAV\$dav_helper, and ilObjectDAV\$repo_helper.
| 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.
Referenced by createFile().
Here is the caller graph for this function:| 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().
Here is the call graph for this function:| 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 |
BadRequest
| Forbidden | |
| NotFound |
Implements Sabre\DAV\ICollection.
Definition at line 61 of file class.ilObjContainerDAV.php.
References $data, $name, childExists(), and getChild().
Here is the call graph for this function:| ilObjContainerDAV::getChild | ( | $name | ) |
Returns a specific child node, referenced by its name.
This method must throw Sabre\DAV\Exception\NotFound if the node does not exist.
| Exception |
NotFound Exception\BadRequest
| string | $name |
Implements Sabre\DAV\ICollection.
Definition at line 149 of file class.ilObjContainerDAV.php.
References $name.
Referenced by createFile().
Here is the caller graph for this function:
|
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'.
Reimplemented in ilObjCategoryDAV, ilObjCourseDAV, ilObjFolderDAV, ilObjGroupDAV, and ilObjRepositoryRootDAV.
Referenced by createDirectory().
Here is the caller graph for this function:| ilObjContainerDAV::getChildren | ( | ) |
Returns an array with all the child nodes.
Implements Sabre\DAV\ICollection.
Definition at line 182 of file class.ilObjContainerDAV.php.