ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
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)
 
 delete ()
 
 getName ()
 
 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 . More...
 
 getObject ()
 Returns ILIAS Object. More...
 

Protected Attributes

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

Additional Inherited Members

- Protected Member Functions inherited from ilObjContainerDAV
 checkReadAndVisibleAccessForObj ($child_ref)
 

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 13 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 25 of file class.ilObjRepositoryRootDAV.php.

References $repository_root_name, ILIAS\GlobalScreen\Provider\__construct(), and ROOT_FOLDER_ID.

26  {
27  $this->repository_root_name = $repository_root_name;
28  parent::__construct(new ilObjRootFolder(ROOT_FOLDER_ID, true), $repo_helper, $dav_helper);
29  }
Class ilObjRootFolder.
const ROOT_FOLDER_ID
Definition: constants.php:30
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ delete()

ilObjRepositoryRootDAV::delete ( )

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

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

◆ getChildCollectionType()

ilObjRepositoryRootDAV::getChildCollectionType ( )

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

47  {
48  return 'cat';
49  }

◆ getName()

ilObjRepositoryRootDAV::getName ( )

◆ setName()

ilObjRepositoryRootDAV::setName (   $name)

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

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

Field Documentation

◆ $repository_root_name

ilObjRepositoryRootDAV::$repository_root_name
protected

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

Referenced by __construct(), and getName().


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