ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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 ()
 Deletes the current node. More...
 
 getName ()
 SabreDAV interface function SabreDAV interface function .
See also
\Sabre\DAV\INode::getName()
. 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 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 . More...
 
 getObject ()
 Returns ILIAS Object. 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.

28 {
29 $this->repository_root_name = $repository_root_name;
31 }
Class ilObjRootFolder.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc

References ilObjectDAV\$dav_helper, ilObjectDAV\$repo_helper, $repository_root_name, and ILIAS\GlobalScreen\Provider\__construct().

+ Here is the call graph for this function:

Member Function Documentation

◆ delete()

ilObjRepositoryRootDAV::delete ( )

Deletes the current node.

Exceptions
Sabre

DAV\Exception\Forbidden

Exceptions
ilRepositoryException
Returns
void

Reimplemented from ilObjectDAV.

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 ( )

Return the type for child collections of this collection For courses, groups and folders the type is 'fold' For categories the type is 'cat'.

Returns
string $type

Reimplemented from ilObjContainerDAV.

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

49 {
50 return 'cat';
51 }

◆ getName()

ilObjRepositoryRootDAV::getName ( )

SabreDAV interface function SabreDAV interface function .

See also
\Sabre\DAV\INode::getName()
.

See also
\Sabre\DAV\INode::getName()

Reimplemented from ilObjectDAV.

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

44 {
46 }

References $repository_root_name.

◆ setName()

ilObjRepositoryRootDAV::setName (   $a_name)

Renames the node.

Parameters
string$a_nameThe new name
Exceptions
Sabre

DAV\Exception\Forbidden

Returns
void

Reimplemented from ilObjectDAV.

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: