ILIAS  release_4-4 Revision
All Data Structures Namespaces Files Functions Variables Modules Pages
ilObjRootDAV Class Reference
+ Inheritance diagram for ilObjRootDAV:
+ Collaboration diagram for ilObjRootDAV:

Public Member Functions

 ilObjRootDAV ($refid)
 Constructor. More...
 
 getObjectId ()
 Returns the object id of this object. More...
 
 getResourceName ()
 Returns the file name of this object. More...
 
 getDisplayName ()
 Returns the file name of this object. More...
 
 getCreationTimestamp ()
 Returns the creation timestamp of this object. More...
 
 getModificationTimestamp ()
 Returns the modification timestamp of this object. More...
 
 getResourceType ()
 Returns the DAV resource type of this object. More...
 
 getILIASCollectionType ()
 
Returns 'cat' as the ilias object type for collections that can be

created as children of this object. More...

 
 getContentType ()
 Returns the mime type of the content of this object. More...
 
 getContentLength ()
 Returns the number of bytes of the content. More...
 
 read ()
 Reads the object data. More...
 
- Public Member Functions inherited from ilObjectDAV
 ilObjectDAV ($refId, $obj=null)
 Constructor. More...
 
 getRefId ()
 Returns the ref id of this object. More...
 
 getObjectId ()
 Returns the object id of this object. More...
 
 getNodeId ()
 Returns the node id of this object. More...
 
 initFromNull ()
 Initializes the object after it has been converted from NULL. More...
 
 read ()
 Reads the object data. More...
 
 write ()
 Writes the object data. More...
 
 getResourceName ()
 Returns the resource name of this object. More...
 
 setResourceName ($name)
 Sets the resource name of this object. More...
 
 getDisplayName ()
 Returns the display name of this object. More...
 
 getCreationTimestamp ()
 Returns the creation date of this object as a Unix timestamp. More...
 
 getModificationTimestamp ()
 Returns the modification date of this object as a Unix timestamp. More...
 
 getResourceType ()
 Returns the DAV resource type of this object. More...
 
 isCollection ()
 Returns true if this object is a DAV collection. More...
 
 isFile ()
 Returns true if this object is a DAV file. More...
 
 isNullResource ()
 Returns true if this is a null resource. More...
 
 getContentType ()
 Returns the mime type of the content of this object. More...
 
 setContentType ($type)
 Sets the mime type of the content of this object. More...
 
 setContentLength ($length)
 Sets the length (number of bytes) of the content of this object. More...
 
 getContentLength ()
 Returns the number of bytes of the content. More...
 
 getContentStream ()
 Returns the content of the object as a stream. More...
 
 getContentOutputStream ()
 Returns an output stream to the content. More...
 
 getContentOutputStreamLength ()
 Returns the length of the content output stream. More...
 
 getContentData ()
 Returns the content of the object as a byte array. More...
 
 isOnline ()
 Returns true if the object is online. More...
 
 isPermitted ($operations, $type='')
 Returns whether a specific operation is permitted for the current user. More...
 
 getILIASType ()
 Returns the ilias type of the current object. More...
 
 getILIASCollectionType ()
 Returns the ilias type for collections that can be created as children of this object. More...
 
 getILIASFileType ()
 Returns the ilias type for files that can be created as children of this object. More...
 
 createNewVersion ()
 Creates a new version of the object. More...
 
 createCollection ($name)
 Creates a dav collection as a child of this object. More...
 
 createFile ($name)
 Creates a dav file as a child of this object. More...
 
 createFileFromNull ($name, &$nullDAV)
 Creates a dav file as a child of this object. More...
 
 createNull ($name)
 Creates a dav null object as a child of this object. More...
 
 remove ($objDAV)
 Removes the specified child from this object. More...
 
 addCopy (&$objDAV, $newName=null)
 Adds a copy of the specified object as a child to this object. More...
 
 cloneNodes ($srcRef, $dstRef, &$mapping, $newName=null)
 Recursively clones all nodes of the RBAC tree. More...
 
 addMove (&$objDAV, $newName=null)
 Adds (moves) the specified object as a child to this object. More...
 
 removeDeletedNodes ($a_node_id, $a_checked, $a_delete_objects=true)
 remove already deleted objects within the objects in trash recursive function More...
 
 children ()
 Returns the children of this object. More...
 
 childrenWithPermission ($operations, $type='')
 Returns the children of this object with the specified permissions. More...
 
 createObject ($refId, $type)
 Static factory method to create a DAV object for a given refId and type. More...
 
 writelog ($message)
 Writes a message to the logfile.,. More...
 
 __toString ()
 This method is needed, because the object class in PHP 5.2 does not have a default implementation of this method anymore. More...
 

Data Fields

 $data
 
- Data Fields inherited from ilObjectDAV
 $refId
 Refid to the object. More...
 
 $obj
 Application layer object. More...
 
 $isDebug = false
 The ObjectDAV prints lots of log messages to the ilias log, if this variable is set to true. More...
 

Detailed Description

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

Member Function Documentation

◆ getContentLength()

ilObjRootDAV::getContentLength ( )

Returns the number of bytes of the content.

Returns
int.

Definition at line 129 of file class.ilObjRootDAV.php.

130  {
131  return 0;
132  }

◆ getContentType()

ilObjRootDAV::getContentType ( )

Returns the mime type of the content of this object.

Returns
String.

Definition at line 121 of file class.ilObjRootDAV.php.

122  {
123  return 'httpd/unix-directory';
124  }

◆ getCreationTimestamp()

ilObjRootDAV::getCreationTimestamp ( )

Returns the creation timestamp of this object.

Precondition: Object must have been read.

Returns
int Unix timestamp.

Definition at line 85 of file class.ilObjRootDAV.php.

86  {
87  return strtotime($this->data['create_date']);
88  }

◆ getDisplayName()

ilObjRootDAV::getDisplayName ( )

Returns the file name of this object.

Precondition: Object must have been read.

Returns
String.

Definition at line 75 of file class.ilObjRootDAV.php.

76  {
77  //return 'ILIAS';
78  return $this->data['title'];
79  }

◆ getILIASCollectionType()

ilObjRootDAV::getILIASCollectionType ( )

Returns 'cat' as the ilias object type for collections that can be

created as children of this object.

Definition at line 112 of file class.ilObjRootDAV.php.

113  {
114  return 'cat';
115  }

◆ getModificationTimestamp()

ilObjRootDAV::getModificationTimestamp ( )

Returns the modification timestamp of this object.

Precondition: Object must have been read.

Returns
int Unix timestamp.

Definition at line 95 of file class.ilObjRootDAV.php.

96  {
97  return strtotime($this->data['last_update']);
98  }

◆ getObjectId()

ilObjRootDAV::getObjectId ( )

Returns the object id of this object.

Precondition: Object must have been read.

Returns
int.

Definition at line 56 of file class.ilObjRootDAV.php.

57  {
58  return $this->data['obj_id'];
59  }

◆ getResourceName()

ilObjRootDAV::getResourceName ( )

Returns the file name of this object.

Precondition: Object must have been read.

Returns
String.

Definition at line 65 of file class.ilObjRootDAV.php.

66  {
67  //return '';
68  return $this->data['title'];
69  }

◆ getResourceType()

ilObjRootDAV::getResourceType ( )

Returns the DAV resource type of this object.

Returns
String "collection" or "".

Definition at line 104 of file class.ilObjRootDAV.php.

105  {
106  return "collection";
107  }

◆ ilObjRootDAV()

ilObjRootDAV::ilObjRootDAV (   $refid)

Constructor.

Parameters
refidA refid to the object.

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

References ilObjectDAV\ilObjectDAV().

47  {
48  $this->ilObjectDAV($refid);
49  }
ilObjectDAV($refId, $obj=null)
Constructor.
+ Here is the call graph for this function:

◆ read()

ilObjRootDAV::read ( )

Reads the object data.

Returns
void.

Definition at line 137 of file class.ilObjRootDAV.php.

References ilObjectDAV\getRefId().

138  {
139  global $tree;
140  $this->data = $tree->getNodeData($this->getRefId());
141  }
getRefId()
Returns the ref id of this object.
+ Here is the call graph for this function:

Field Documentation

◆ $data

ilObjRootDAV::$data

Definition at line 40 of file class.ilObjRootDAV.php.


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