|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
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 . More... | |
| getObject () | |
| Returns ILIAS Object. More... | |
Protected Member Functions | |
| checkReadAndVisibleAccessForObj ($child_ref) | |
Additional Inherited Members | |
Protected Attributes inherited from ilObjectDAV | |
| $ref_id | |
| $obj | |
| $request | |
| $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, ilObjectDAV\$repo_helper, and ILIAS\GlobalScreen\Provider\__construct().
Here is the call graph for this function:
|
protected |
Definition at line 259 of file class.ilObjContainerDAV.php.
Referenced by childExists(), getChild(), and getChildren().
Here is the caller graph for this function:| ilObjContainerDAV::childExists | ( | $name | ) |
Checks if a child-node with the specified name exists.
| string | $name |
Definition at line 235 of file class.ilObjContainerDAV.php.
References $name, and checkReadAndVisibleAccessForObj().
Referenced by createFile().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjContainerDAV::createDirectory | ( | $name | ) |
Creates a new subdirectory.
| string | $name |
| NotImplemented |
Definition at line 106 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 |
Definition at line 60 of file class.ilObjContainerDAV.php.
References $data, $name, $size, childExists(), getChild(), and ilUtil\getUploadSizeLimitBytes().
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 |
Definition at line 150 of file class.ilObjContainerDAV.php.
References $name, checkReadAndVisibleAccessForObj(), and ilProblemInfoFileDAV\PROBLEM_INFO_FILE_NAME.
Referenced by createFile().
Here is the call graph for this function:
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.
Definition at line 190 of file class.ilObjContainerDAV.php.
References checkReadAndVisibleAccessForObj().
Here is the call graph for this function: