ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
ilObjMountPointDAV Class Reference
+ Inheritance diagram for ilObjMountPointDAV:
+ Collaboration diagram for ilObjMountPointDAV:

Public Member Functions

 ilObjMountPointDAV ()
 Constructor. More...
 
 getObjectId ()
 
 read ()
 
 write ()
 
 getResourceName ()
 
 getDisplayName ()
 
 getCreationTimestamp ()
 
 getModificationTimestamp ()
 Returns the modification timestamp of this object. More...
 
 getResourceType ()
 Returns the DAV resource type 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...
 
 isPermitted ($actions, $type='')
 Returns whether a specific operation is permitted for the current user. More...
 
 children ()
 
- 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 ()
 
 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 40 of file class.ilObjMountPointDAV.php.

Member Function Documentation

◆ children()

ilObjMountPointDAV::children ( )
Returns the children of this object.
Returns
Array<ilObjectDAV>. Returns an empty array, if this object is not a collection..

Reimplemented from ilObjectDAV.

Definition at line 166 of file class.ilObjMountPointDAV.php.

167 {
168 global $tree;
169
170 $childrenDAV = array();
171 $data =& $tree->getNodeData($tree->getRootId());
172 $childDAV =& $this->createObject($data['ref_id'],'root');
173 if (! is_null($childDAV))
174 {
175 // Note: We must not assign with =& here, because this will cause trouble
176 // when other functions attempt to work with the $childrenDAV array.
177 $childrenDAV[] = $childDAV;
178 }
179 return $childrenDAV;
180 }
createObject($refId, $type)
Static factory method to create a DAV object for a given refId and type.

References $data, and ilObjectDAV\createObject().

+ Here is the call graph for this function:

◆ getContentLength()

ilObjMountPointDAV::getContentLength ( )

Returns the number of bytes of the content.

Returns
int.

Reimplemented from ilObjectDAV.

Definition at line 139 of file class.ilObjMountPointDAV.php.

140 {
141 return 0;
142 }

◆ getContentType()

ilObjMountPointDAV::getContentType ( )

Returns the mime type of the content of this object.

Returns
String.

Reimplemented from ilObjectDAV.

Definition at line 131 of file class.ilObjMountPointDAV.php.

132 {
133 return 'httpd/unix-directory';
134 }

◆ getCreationTimestamp()

ilObjMountPointDAV::getCreationTimestamp ( )
Returns the creation timestamp of this object.
Precondition: Object must have been read.
Returns
int Unix timestamp.

Reimplemented from ilObjectDAV.

Definition at line 103 of file class.ilObjMountPointDAV.php.

104 {
105 return strtotime('2000-01-01');
106 }

◆ getDisplayName()

ilObjMountPointDAV::getDisplayName ( )
Returns the file name of this object.
Precondition: Object must have been read.
Returns
String.

Reimplemented from ilObjectDAV.

Definition at line 94 of file class.ilObjMountPointDAV.php.

95 {
96 return '';
97 }

◆ getModificationTimestamp()

ilObjMountPointDAV::getModificationTimestamp ( )

Returns the modification timestamp of this object.

Precondition: Object must have been read.

Returns
int Unix timestamp.

Reimplemented from ilObjectDAV.

Definition at line 113 of file class.ilObjMountPointDAV.php.

114 {
115 return strtotime('2000-01-01');
116 }

◆ getObjectId()

ilObjMountPointDAV::getObjectId ( )
Returns the object id of this object.

This method returns -1, because there is actually no parent of the root node.

Reimplemented from ilObjectDAV.

Definition at line 58 of file class.ilObjMountPointDAV.php.

59 {
60 return -1;
61 }

◆ getResourceName()

ilObjMountPointDAV::getResourceName ( )
Returns the file name of this object.
Precondition: Object must have been read.
Returns
String.

Reimplemented from ilObjectDAV.

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

86 {
87 return '';
88 }

◆ getResourceType()

ilObjMountPointDAV::getResourceType ( )

Returns the DAV resource type of this object.

Returns
String "collection" or "".

Reimplemented from ilObjectDAV.

Definition at line 122 of file class.ilObjMountPointDAV.php.

123 {
124 return "collection";
125 }

◆ ilObjMountPointDAV()

ilObjMountPointDAV::ilObjMountPointDAV ( )

Constructor.

Parameters
refidA refid to the object.

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

49 {
50 $this->ilObjectDAV(-1);
51 }
ilObjectDAV($refId, $obj=null)
Constructor.

References ilObjectDAV\ilObjectDAV().

+ Here is the call graph for this function:

◆ isPermitted()

ilObjMountPointDAV::isPermitted (   $operations,
  $type = '' 
)

Returns whether a specific operation is permitted for the current user.

This method takes all conditions into account that are required to perform the specified action on behalf of the current user.

Parameters
stringone or more operations, separated by commas (i.e.: visible,read,join)
stringthe ILIAS type definition abbreviation (i.e.: frm,grp,crs) (only needed for 'create' operation'.
Returns
boolean returns true if ALL passed operations are given, otherwise false

Reimplemented from ilObjectDAV.

Definition at line 143 of file class.ilObjMountPointDAV.php.

144 {
145 // All users have "visible" and "read" access to the mount point
146 $a = explode(',',$actions);
147 foreach ($a as $action)
148 {
149 switch ($action)
150 {
151 case 'read' :
152 case 'visible' :
153 break;
154 default :
155 return false;
156 }
157 }
158 return true;
159 }

◆ read()

ilObjMountPointDAV::read ( )
Reads the object data.

This method does nothing, because there is actually no parent of the root node.

Returns
void.

Reimplemented from ilObjectDAV.

Definition at line 68 of file class.ilObjMountPointDAV.php.

69 {
70 }

◆ write()

ilObjMountPointDAV::write ( )
Writes the object data.

This method does nothing, because there is actually no parent of the root node.

Returns
void.

Reimplemented from ilObjectDAV.

Definition at line 77 of file class.ilObjMountPointDAV.php.

78 {
79 }

Field Documentation

◆ $data

ilObjMountPointDAV::$data

Definition at line 42 of file class.ilObjMountPointDAV.php.

Referenced by children().


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