25require_once
"class.ilObjectDAV.php";
26require_once
"Modules/Category/classes/class.ilObjCategory.php";
66 return 'httpd/unix-directory';
93 $trans =& $this->obj->getTranslations();
96 $this->obj->removeTranslations();
99 for ($i = 0; $i < count($trans[
"Fobject"]); $i++)
102 $default = ($i == 0) ? 1 : 0;
103 $val = $trans[
"Fobject"][$i];
105 $this->obj->addTranslation($this->obj->getTitle(),$val[
"desc"],$val[
"lang"],$default);
122 $newObj->setTitle($name);
125 $newObj->createReference();
126 $newObj->setPermissions($this->
getRefId());
127 $newObj->putInTree($this->getRefID());
128 $newObj->addTranslation($name,
'',
$lng->getLangKey(),1);
write()
Writes the object data.
getResourceType()
Returns the DAV resource type of this object.
getILIASCollectionType()
Returns the ilias object type for collections that can be created as children of this object.
getContentType()
Returns the mime type of the content of this object.
getContentLength()
Returns the number of bytes of the content.
ilObjCategoryDAV($refid)
Constructor.
createCollection($name)
Creates a dav collection as a child of this object.
ilObjectDAV($refId, $obj=null)
Constructor.
getRefId()
Returns the ref id of this object.