ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilObjNullDAV Class Reference
+ Inheritance diagram for ilObjNullDAV:
+ Collaboration diagram for ilObjNullDAV:

Public Member Functions

 ilObjNullDAV ($refid, $obj=null)
 Constructor.
 getResourceType ()
 Returns the DAV resource type of this object.
 getContentType ()
 Returns the mime type of the content of this object.
 read ()
 Reads the object data.
 convertToILIASType ($refId, $type)
 Converts this object to the specified ILIAS type.
- Public Member Functions inherited from ilObjectDAV
 ilObjectDAV ($refId, $obj=null)
 Constructor.
 getRefId ()
 Returns the ref id of this object.
 getObjectId ()
 Returns the object id of this object.
 getNodeId ()
 Returns the node id of this object.
 initFromNull ()
 Initializes the object after it has been converted from NULL.
 write ()
 Writes the object data.
 getResourceName ()
 Returns the resource name of this object.
 setResourceName ($name)
 Sets the resource name of this object.
 getDisplayName ()
 Returns the display name of this object.
 getCreationTimestamp ()
 Returns the creation date of this object as a Unix timestamp.
 getModificationTimestamp ()
 Returns the modification date of this object as a Unix timestamp.
 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.
 getContentLength ()
 Returns the number of bytes of the content.
 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.
 isPermitted ($operations, $type= '')
 Returns whether a specific operation is permitted for the current user.
 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
 children ()
 Returns the children of this object.
 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.

Additional Inherited Members

- 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 96 of file class.ilObjNullDAV.php.

Member Function Documentation

ilObjNullDAV::convertToILIASType (   $refId,
  $type 
)

Converts this object to the specified ILIAS type.

Parameters
refidof the parent object
ILIAStype

Definition at line 145 of file class.ilObjNullDAV.php.

References ilObjectDAV\$refId, $type, ilObjectDAV\createObject(), ilObjectDAV\getRefId(), ilObjectDAV\write(), and ilObjectDAV\writelog().

{
$this->obj->setType($type);
$this->write();
$this->obj->setPermissions($refId);
$this->writelog('convertToILIASType '.$type.' obj='.$this->getObjectId());
$converted =& $this->createObject($this->getRefId(), $type);
$converted->obj->createProperties();
return $converted;
}

+ Here is the call graph for this function:

ilObjNullDAV::getContentType ( )

Returns the mime type of the content of this object.

Returns
String.

Reimplemented from ilObjectDAV.

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

{
return 'application/x-non-readable';
}
ilObjNullDAV::getResourceType ( )

Returns the DAV resource type of this object.

Returns
String "collection", "" (file) or "null".

Reimplemented from ilObjectDAV.

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

{
return 'null';
}
ilObjNullDAV::ilObjNullDAV (   $refid,
  $obj = null 
)

Constructor.

Parameters
refidA refid to the object.

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

References ilObjectDAV\$obj, and ilObjectDAV\ilObjectDAV().

{
$this->ilObjectDAV($refid, $obj);
}

+ Here is the call graph for this function:

ilObjNullDAV::read ( )

Reads the object data.

Returns
void.

Reimplemented from ilObjectDAV.

Definition at line 130 of file class.ilObjNullDAV.php.

References ilObjectDAV\getRefId().

{
if (is_null($this->obj))
{
$this->obj = &new ilObjNull($this->getRefId(),true);
$this->obj->read();
}
}

+ Here is the call graph for this function:


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