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();
getObjectId()
Returns the object id of this object.
Class ilWebDAVRepositoryHelper.
setName($a_name)
Renames the node.
getObject()
Returns ILIAS Object.
getLastModified()
Returns the last modification time as a unix timestamp.
Class ilWebDAVObjDAVHelper.
getRefId()
get reference id public
__construct(ilObject $a_obj, ilWebDAVRepositoryHelper $repo_helper, ilWebDAVObjDAVHelper $dav_helper)
Constructor for DAV Object.
getName()
SabreDAV interface function Returns the name of the node.This is used to generate the url...
getRefId()
Returns the ref id of this object.