ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilObjRepositoryRootDAV Class Reference

Class ilObjRepositoryRootDAV. More...

+ Inheritance diagram for ilObjRepositoryRootDAV:
+ Collaboration diagram for ilObjRepositoryRootDAV:

Public Member Functions

 __construct (string $repository_root_name, ilWebDAVRepositoryHelper $repo_helper, ilWebDAVObjDAVHelper $dav_helper)
 Check if given object has valid type and calls parent constructor. More...
 
 setName ($name)
 Renames the node. More...
 
 delete ()
 Deleted the current node. More...
 
 getName ()
 Returns the name of the node. More...
 
 getChildCollectionType ()
 
- Public Member Functions inherited from ilObjContainerDAV
 __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...
 
- Public Member Functions inherited from ilObjectDAV
 __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 Returns the name of the node.This is used to generate the url.
Returns
string
. More...
 
 getObject ()
 Returns ILIAS Object. More...
 
- Public Member Functions inherited from Sabre\DAV\Node
 getLastModified ()
 Returns the last modification time as a unix timestamp. More...
 
 delete ()
 Deletes the current node. More...
 
 setName ($name)
 Renames the node. More...
 

Protected Attributes

 $repository_root_name
 
- Protected Attributes inherited from ilObjectDAV
 $ref_id
 
 $obj
 
 $repo_helper
 
 $dav_helper
 

Detailed Description

Class ilObjRepositoryRootDAV.

Small implementation of the ILIAS Repository Root as WebDAV object.

Author
Raphael Heer rapha.nosp@m.el.h.nosp@m.eer@h.nosp@m.slu..nosp@m.ch $Id$

Definition at line 15 of file class.ilObjRepositoryRootDAV.php.

Constructor & Destructor Documentation

◆ __construct()

ilObjRepositoryRootDAV::__construct ( string  $repository_root_name,
ilWebDAVRepositoryHelper  $repo_helper,
ilWebDAVObjDAVHelper  $dav_helper 
)

Check if given object has valid type and calls parent constructor.

Parameters
string$repository_root_name
ilWebDAVRepositoryHelper$repo_helper
ilWebDAVObjDAVHelper$dav_helper

Definition at line 27 of file class.ilObjRepositoryRootDAV.php.

References $repository_root_name.

28  {
29  $this->repository_root_name = $repository_root_name;
30  parent::__construct(new ilObjRootFolder(ROOT_FOLDER_ID, true), $repo_helper, $dav_helper);
31  }
Class ilObjRootFolder.

Member Function Documentation

◆ delete()

ilObjRepositoryRootDAV::delete ( )

Deleted the current node.

Returns
void

Implements Sabre\DAV\INode.

Definition at line 38 of file class.ilObjRepositoryRootDAV.php.

39  {
40  throw new Forbidden("It's not allowed to delete the repository root");
41  }

◆ getChildCollectionType()

ilObjRepositoryRootDAV::getChildCollectionType ( )

Definition at line 48 of file class.ilObjRepositoryRootDAV.php.

49  {
50  return 'cat';
51  }

◆ getName()

ilObjRepositoryRootDAV::getName ( )

Returns the name of the node.

This is used to generate the url.

Returns
string

Implements Sabre\DAV\INode.

Definition at line 43 of file class.ilObjRepositoryRootDAV.php.

References $repository_root_name.

◆ setName()

ilObjRepositoryRootDAV::setName (   $name)

Renames the node.

Parameters
string$nameThe new name
Returns
void

Implements Sabre\DAV\INode.

Definition at line 33 of file class.ilObjRepositoryRootDAV.php.

34  {
35  throw new Forbidden("It's not allowed to rename the repository root");
36  }

Field Documentation

◆ $repository_root_name

ilObjRepositoryRootDAV::$repository_root_name
protected

Definition at line 18 of file class.ilObjRepositoryRootDAV.php.

Referenced by __construct(), and getName().


The documentation for this class was generated from the following file: