3use Sabre\DAV\Exception\Forbidden;
48 $this->request =
$DIC->http()->request();
69 return ($this->obj ==
null) ? null : $this->obj->getId();
81 return ($this->obj ==
null) ? null : strtotime($this->obj->getLastUpdateDate());
91 public function delete()
93 if ($this->repo_helper->checkAccess(
'delete', $this->ref_id)) {
94 $this->repo_helper->deleteObject($this->ref_id);
96 throw new Forbidden(
"Permission denied");
109 if ($this->repo_helper->checkAccess(
"write", $this->obj->getRefId())) {
110 if ($this->dav_helper->isDAVableObjTitle($a_name)) {
111 $this->obj->setTitle($a_name);
112 $this->obj->update();
114 throw new Forbidden(
'Forbidden characters in title');
117 throw new Forbidden(
'Permission denied');
128 return $this->obj->getTitle();
An exception for terminatinating execution or to throw for unit testing.
__construct(ilObject $a_obj, ilWebDAVRepositoryHelper $repo_helper, ilWebDAVObjDAVHelper $dav_helper)
Constructor for DAV Object.
getObject()
Returns ILIAS Object.
setName($a_name)
Renames the node.
getObjectId()
Returns the object id of this object.
getRefId()
Returns the ref id of this object.
getName()
SabreDAV interface function .
getLastModified()
Returns the last modification time as a unix timestamp.
Class ilObject Basic functions for all objects.
getRefId()
get reference id @access public
Class ilWebDAVObjDAVHelper.
Class ilWebDAVRepositoryHelper.