ILIAS
release_7 Revision v7.30-3-g800a261c036
|
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 . More... | |
getObject () | |
Returns ILIAS Object. More... | |
Protected Member Functions | |
checkReadAndVisibleAccessForObj ($child_ref) | |
Additional Inherited Members | |
![]() | |
$ref_id | |
$obj | |
$request | |
$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.
References ILIAS\GlobalScreen\Provider\__construct().
|
protected |
Definition at line 259 of file class.ilObjContainerDAV.php.
References getChildCollectionType().
Referenced by childExists(), getChild(), and getChildren().
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().
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().
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 |
Definition at line 60 of file class.ilObjContainerDAV.php.
References $data, $name, $size, childExists(), getChild(), and ilUtil\getUploadSizeLimitBytes().
ilObjContainerDAV::getChild | ( | $name | ) |
Returns a specific child node, referenced by its name.
This method must throw Sabre if the node does not exist.
Exception |
Definition at line 150 of file class.ilObjContainerDAV.php.
References $name, checkReadAndVisibleAccessForObj(), and ilProblemInfoFileDAV\PROBLEM_INFO_FILE_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 checkReadAndVisibleAccessForObj(), and createDirectory().
ilObjContainerDAV::getChildren | ( | ) |
Returns an array with all the child nodes.
Definition at line 190 of file class.ilObjContainerDAV.php.
References checkReadAndVisibleAccessForObj().