ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilObjMountPointDAV Class Reference
+ Inheritance diagram for ilObjMountPointDAV:
+ Collaboration diagram for ilObjMountPointDAV:

Public Member Functions

 __construct ()
 Constructor. More...
 
 getObjectId ()
 Returns the object id of this object. More...
 
 read ()
 Reads the object data. More...
 
 write ()
 Writes the object data. 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...
 
 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='')
 
 children ()
 Returns the children of this object. More...
 
- Public Member Functions inherited from ilObjectDAV
 __construct ($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...
 
 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...
 

Additional Inherited Members

- Static Public Member Functions inherited from ilObjectDAV
static createObject ($refId, $type)
 Static factory method to create a DAV object for a given refId and type. More...
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ilObjMountPointDAV::__construct ( )

Constructor.

Parameters
refidA refid to the object.

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

49  {
50  parent::__construct(-1);
51  }

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..

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

References $data, $DIC, array, and ilObjectDAV\createObject().

165  {
166  global $DIC;
167  $tree = $DIC['tree'];
168 
169  $childrenDAV = array();
170  $data =&$tree->getNodeData($tree->getRootId());
171  $childDAV =&ilObjectDAV::createObject($data['ref_id'], 'root');
172  if (!is_null($childDAV)) {
173  // Note: We must not assign with =& here, because this will cause trouble
174  // when other functions attempt to work with the $childrenDAV array.
175  $childrenDAV[] = $childDAV;
176  }
177  return $childrenDAV;
178  }
static createObject($refId, $type)
Static factory method to create a DAV object for a given refId and type.
global $DIC
Definition: saml.php:7
Create styles array
The data for the language used.
+ Here is the call graph for this function:

◆ getContentLength()

ilObjMountPointDAV::getContentLength ( )

Returns the number of bytes of the content.

Returns
int.

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.

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.

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.

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.

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.

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.

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 "".

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

123  {
124  return "collection";
125  }

◆ isPermitted()

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

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

References $action.

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

◆ read()

ilObjMountPointDAV::read ( )

Reads the object data.

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

Returns
void.

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.

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: