67 return ($this->obj ==
null) ? null : $this->obj->getId();
79 return ($this->obj ==
null) ? null : strtotime($this->obj->getLastUpdateDate());
89 public function delete()
91 if ($this->repo_helper->checkAccess(
'delete', $this->ref_id)) {
92 $this->repo_helper->deleteObject($this->ref_id);
107 if ($this->repo_helper->checkAccess(
"write", $this->obj->getRefId())) {
108 if ($this->dav_helper->isDAVableObjTitle($a_name)) {
109 $this->obj->setTitle($a_name);
110 $this->obj->update();
112 throw new Forbidden(
'Forbidden characters in title');
115 throw new Forbidden(
'Permission denied');
126 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 Returns the name of the node.This is used to generate the url....
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.