ILIAS  eassessment Revision 61809
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilObjMountPointDAV Class Reference
+ Inheritance diagram for ilObjMountPointDAV:
+ Collaboration diagram for ilObjMountPointDAV:

Public Member Functions

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

Data Fields

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

Detailed Description

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

Member Function Documentation

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.

References $data, and ilObjectDAV\createObject().

{
global $tree;
$childrenDAV = array();
$data =& $tree->getNodeData($tree->getRootId());
$childDAV =& $this->createObject($data['ref_id'],'root');
if (! is_null($childDAV))
{
// Note: We must not assign with =& here, because this will cause trouble
// when other functions attempt to work with the $childrenDAV array.
$childrenDAV[] = $childDAV;
}
return $childrenDAV;
}

+ Here is the call graph for this function:

ilObjMountPointDAV::getContentLength ( )

Returns the number of bytes of the content.

Returns
int.

Reimplemented from ilObjectDAV.

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

{
return 0;
}
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.

{
return 'httpd/unix-directory';
}
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.

{
return strtotime('2000-01-01');
}
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.

{
return '';
}
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.

{
return strtotime('2000-01-01');
}
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.

{
return -1;
}
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.

{
return '';
}
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.

{
return "collection";
}
ilObjMountPointDAV::ilObjMountPointDAV ( )

Constructor.

Parameters
refidA refid to the object.

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

References ilObjectDAV\ilObjectDAV().

{
$this->ilObjectDAV(-1);
}

+ Here is the call graph for this function:

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

{
// All users have "visible" and "read" access to the mount point
$a = explode(',',$actions);
foreach ($a as $action)
{
switch ($action)
{
case 'read' :
case 'visible' :
break;
default :
return false;
}
}
return true;
}
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.

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

{
}

Field Documentation

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: