ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f87
ilObjCourseDAV Class Reference
+ Inheritance diagram for ilObjCourseDAV:
+ Collaboration diagram for ilObjCourseDAV:

Public Member Functions

 ilObjCourseDAV ($refid)
 Constructor. 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...
 
 isOnline ()
 Returns true if the object is online. 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...
 

Additional Inherited Members

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

Member Function Documentation

◆ getContentLength()

ilObjCourseDAV::getContentLength ( )

Returns the number of bytes of the content.

Returns
int.

Definition at line 72 of file class.ilObjCourseDAV.php.

73  {
74  return 0;
75  }

◆ getContentType()

ilObjCourseDAV::getContentType ( )

Returns the mime type of the content of this object.

Returns
String.

Definition at line 64 of file class.ilObjCourseDAV.php.

65  {
66  return 'httpd/unix-directory';
67  }

◆ getResourceType()

ilObjCourseDAV::getResourceType ( )

Returns the DAV resource type of this object.

Returns
String "collection" or "".

Definition at line 55 of file class.ilObjCourseDAV.php.

56  {
57  return "collection";
58  }

◆ ilObjCourseDAV()

ilObjCourseDAV::ilObjCourseDAV (   $refid)

Constructor.

Parameters
refidA refid to the object.

Definition at line 45 of file class.ilObjCourseDAV.php.

References ilObjectDAV\ilObjectDAV().

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

◆ isOnline()

ilObjCourseDAV::isOnline ( )

Returns true if the object is online.

Definition at line 80 of file class.ilObjCourseDAV.php.

81  {
82  return ! $this->obj->getOfflineStatus();
83  }

◆ read()

ilObjCourseDAV::read ( )

Reads the object data.

Returns
void.

Definition at line 89 of file class.ilObjCourseDAV.php.

References ilObjectDAV\getRefId().

90  {
91  if (is_null($this->obj))
92  {
93  $this->obj = &new ilObjCourse($this->getRefId(),true);
94  $this->obj->read();
95  }
96  }
Class ilObjCourse.
getRefId()
Returns the ref id of this object.
+ Here is the call graph for this function:

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