ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Public Member Functions | |
__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... | |
Static Public Member Functions | |
static | createObject ($refId, $type) |
Static factory method to create a DAV object for a given refId and type. More... | |
Data Fields | |
$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... | |
Definition at line 37 of file class.ilObjectDAV.php.
ilObjectDAV::__construct | ( | $refId, | |
$obj = null |
|||
) |
Constructor.
int | A refId to the object. |
Reimplemented in ilObjFileDAV, and ilObjNullDAV.
Definition at line 60 of file class.ilObjectDAV.php.
References $obj, $refId, and writelog().
ilObjectDAV::__toString | ( | ) |
This method is needed, because the object class in PHP 5.2 does not have a default implementation of this method anymore.
Definition at line 864 of file class.ilObjectDAV.php.
References getObjectId().
ilObjectDAV::addCopy | ( | & | $objDAV, |
$newName = null |
|||
) |
Adds a copy of the specified object as a child to this object.
ilObjectDAV | the object to be copied. |
string | the new name of the copy (optional). |
Definition at line 520 of file class.ilObjectDAV.php.
References $DIC, cloneNodes(), createObject(), and writelog().
ilObjectDAV::addMove | ( | & | $objDAV, |
$newName = null |
|||
) |
Adds (moves) the specified object as a child to this object.
The object is removed from its former parent.
ilObjectDAV | the object to be moved. |
string | the new name (optional). |
Definition at line 593 of file class.ilObjectDAV.php.
References $DIC, $log, and writelog().
ilObjectDAV::children | ( | ) |
Returns the children of this object.
Reimplemented in ilObjMountPointDAV.
Definition at line 734 of file class.ilObjectDAV.php.
References $data, $DIC, createObject(), and getRefId().
Referenced by childrenWithPermission().
ilObjectDAV::childrenWithPermission | ( | $operations, | |
$type = '' |
|||
) |
Returns the children of this object with the specified permissions.
string | one or more operations, separated by commas (i.e.: visible,read,join) |
string | the ILIAS type definition abbreviation (i.e.: frm,grp,crs) (only needed for 'create' operation'. |
Definition at line 767 of file class.ilObjectDAV.php.
References $type, and children().
ilObjectDAV::cloneNodes | ( | $srcRef, | |
$dstRef, | |||
& | $mapping, | ||
$newName = null |
|||
) |
Recursively clones all nodes of the RBAC tree.
@access private
integer | ref_id of source object |
integer | ref_id of destination object |
array | mapping new_ref_id => old_ref_id |
string | the new name of the copy (optional). |
Definition at line 543 of file class.ilObjectDAV.php.
References $DIC, cloneNodes(), createObject(), and writelog().
Referenced by addCopy(), and cloneNodes().
ilObjectDAV::createCollection | ( | $name | ) |
Creates a dav collection as a child of this object.
string | the name of the collection. |
Reimplemented in ilObjCategoryDAV.
Definition at line 390 of file class.ilObjectDAV.php.
References $DIC, $name, getILIASCollectionType(), and getRefId().
ilObjectDAV::createFile | ( | $name | ) |
Creates a dav file as a child of this object.
string | the name of the file. |
Definition at line 415 of file class.ilObjectDAV.php.
References $DIC, $name, getILIASFileType(), ilMimeTypeUtil\getMimeType(), and getRefId().
ilObjectDAV::createFileFromNull | ( | $name, | |
& | $nullDAV | ||
) |
Creates a dav file as a child of this object.
string | the name of the file. |
Definition at line 452 of file class.ilObjectDAV.php.
References $DIC, getILIASFileType(), and getRefId().
ilObjectDAV::createNewVersion | ( | ) |
Creates a new version of the object.
Only objects which support versioning need to implement this method.
Reimplemented in ilObjFileDAV.
Definition at line 379 of file class.ilObjectDAV.php.
ilObjectDAV::createNull | ( | $name | ) |
Creates a dav null object as a child of this object.
null objects are used for locking names.
string | the name of the null object. |
Definition at line 470 of file class.ilObjectDAV.php.
References $DIC, $name, and getRefId().
|
static |
Static factory method to create a DAV object for a given refId and type.
int | refID. |
String | type The ILIAS object type. |
Definition at line 789 of file class.ilObjectDAV.php.
Referenced by addCopy(), children(), ilObjMountPointDAV\children(), cloneNodes(), ilObjNullDAV\convertToILIASType(), ilDAVServer\getObject(), and ilDAVServer\toObjectPath().
ilObjectDAV::getContentData | ( | ) |
Returns the content of the object as a byte array.
Reimplemented in ilObjFileDAV.
Definition at line 289 of file class.ilObjectDAV.php.
ilObjectDAV::getContentLength | ( | ) |
Returns the number of bytes of the content.
Reimplemented in ilObjCategoryDAV, ilObjCourseDAV, ilObjFileDAV, ilObjFolderDAV, ilObjGroupDAV, ilObjMountPointDAV, and ilObjRootDAV.
Definition at line 251 of file class.ilObjectDAV.php.
ilObjectDAV::getContentOutputStream | ( | ) |
Returns an output stream to the content.
Reimplemented in ilObjFileDAV.
Definition at line 267 of file class.ilObjectDAV.php.
ilObjectDAV::getContentOutputStreamLength | ( | ) |
Returns the length of the content output stream.
This method is used by the ilDAVServer, if a PUT operation has been performed for which the client did not specify the content length.
Integer. |
Reimplemented in ilObjFileDAV.
Definition at line 280 of file class.ilObjectDAV.php.
ilObjectDAV::getContentStream | ( | ) |
Returns the content of the object as a stream.
Reimplemented in ilObjFileDAV.
Definition at line 259 of file class.ilObjectDAV.php.
ilObjectDAV::getContentType | ( | ) |
Returns the mime type of the content of this object.
Reimplemented in ilObjCategoryDAV, ilObjCourseDAV, ilObjFileDAV, ilObjFolderDAV, ilObjGroupDAV, ilObjMountPointDAV, ilObjNullDAV, and ilObjRootDAV.
Definition at line 227 of file class.ilObjectDAV.php.
ilObjectDAV::getCreationTimestamp | ( | ) |
Returns the creation date of this object as a Unix timestamp.
Precondition: Object must have been read.
Reimplemented in ilObjMountPointDAV, and ilObjRootDAV.
Definition at line 171 of file class.ilObjectDAV.php.
ilObjectDAV::getDisplayName | ( | ) |
Returns the display name of this object.
Precondition: Object must have been read.
Reimplemented in ilObjMountPointDAV, and ilObjRootDAV.
Definition at line 161 of file class.ilObjectDAV.php.
ilObjectDAV::getILIASCollectionType | ( | ) |
Returns the ilias type for collections that can be created as children of this object.
Reimplemented in ilObjCategoryDAV, and ilObjRootDAV.
Definition at line 363 of file class.ilObjectDAV.php.
Referenced by createCollection().
ilObjectDAV::getILIASFileType | ( | ) |
Returns the ilias type for files that can be created as children of this object.
Definition at line 370 of file class.ilObjectDAV.php.
Referenced by createFile(), and createFileFromNull().
ilObjectDAV::getILIASType | ( | ) |
Returns the ilias type of the current object.
Definition at line 352 of file class.ilObjectDAV.php.
References $GLOBALS.
ilObjectDAV::getModificationTimestamp | ( | ) |
Returns the modification date of this object as a Unix timestamp.
Precondition: Object must have been read.
Reimplemented in ilObjMountPointDAV, and ilObjRootDAV.
Definition at line 181 of file class.ilObjectDAV.php.
ilObjectDAV::getNodeId | ( | ) |
Returns the node id of this object.
This only used by objects that are represented as a single object in RBAC, but as multiple objects in WebDAV.
Definition at line 93 of file class.ilObjectDAV.php.
ilObjectDAV::getObjectId | ( | ) |
Returns the object id of this object.
Reimplemented in ilObjMountPointDAV, and ilObjRootDAV.
Definition at line 82 of file class.ilObjectDAV.php.
Referenced by __toString(), and ilObjNullDAV\convertToILIASType().
ilObjectDAV::getRefId | ( | ) |
Returns the ref id of this object.
Definition at line 74 of file class.ilObjectDAV.php.
References $refId.
Referenced by children(), ilObjNullDAV\convertToILIASType(), ilObjCategoryDAV\createCollection(), createCollection(), createFile(), createFileFromNull(), createNull(), initFromNull(), ilObjFileDAV\initFromNull(), isPermitted(), ilObjCourseDAV\read(), read(), ilObjFileDAV\read(), ilObjGroupDAV\read(), ilObjNullDAV\read(), and ilObjRootDAV\read().
ilObjectDAV::getResourceName | ( | ) |
Returns the resource name of this object.
Precondition: Object must have been read.
Reimplemented in ilObjMountPointDAV, and ilObjRootDAV.
Definition at line 142 of file class.ilObjectDAV.php.
Referenced by ilObjFileDAV\initFromNull().
ilObjectDAV::getResourceType | ( | ) |
Returns the DAV resource type of this object.
@return String "collection", "" (file) or "null".
Reimplemented in ilObjCategoryDAV, ilObjCourseDAV, ilObjFileDAV, ilObjFolderDAV, ilObjGroupDAV, ilObjMountPointDAV, ilObjNullDAV, and ilObjRootDAV.
Definition at line 191 of file class.ilObjectDAV.php.
Referenced by isCollection(), isFile(), and isNullResource().
ilObjectDAV::initFromNull | ( | ) |
Initializes the object after it has been converted from NULL.
We create all the additonal object data that is needed, to make the object work.
@return void.
Reimplemented in ilObjFileDAV.
Definition at line 104 of file class.ilObjectDAV.php.
References getRefId().
ilObjectDAV::isCollection | ( | ) |
Returns true if this object is a DAV collection.
@return bool.
Definition at line 201 of file class.ilObjectDAV.php.
References getResourceType().
ilObjectDAV::isFile | ( | ) |
Returns true if this object is a DAV file.
@return bool.
Definition at line 210 of file class.ilObjectDAV.php.
References getResourceType().
ilObjectDAV::isNullResource | ( | ) |
Returns true if this is a null resource.
Null objects are used for locking names.
Definition at line 218 of file class.ilObjectDAV.php.
References getResourceType().
ilObjectDAV::isOnline | ( | ) |
Returns true if the object is online.
Reimplemented in ilObjCourseDAV.
Definition at line 297 of file class.ilObjectDAV.php.
Referenced by isPermitted().
ilObjectDAV::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.
string | one or more operations, separated by commas (i.e.: visible,read,join) |
string | the ILIAS type definition abbreviation (i.e.: frm,grp,crs) (only needed for 'create' operation'. |
Reimplemented in ilObjMountPointDAV.
Definition at line 312 of file class.ilObjectDAV.php.
References $_GET, $DIC, $GLOBALS, $type, getRefId(), and isOnline().
ilObjectDAV::read | ( | ) |
Reads the object data.
Reimplemented in ilObjCourseDAV, ilObjFileDAV, ilObjGroupDAV, ilObjMountPointDAV, ilObjNullDAV, and ilObjRootDAV.
Definition at line 116 of file class.ilObjectDAV.php.
References $DIC, and getRefId().
ilObjectDAV::remove | ( | $objDAV | ) |
Removes the specified child from this object.
ilObjectDAV | the child to be removed. |
Definition at line 498 of file class.ilObjectDAV.php.
References $DIC, and ilUtil\removeItemFromDesktops().
ilObjectDAV::removeDeletedNodes | ( | $a_node_id, | |
$a_checked, | |||
$a_delete_objects = true |
|||
) |
remove already deleted objects within the objects in trash recursive function
@access public
integer | ref_id of source object |
boolean |
Definition at line 679 of file class.ilObjectDAV.php.
References $DIC, $ilDB, $log, $query, $res, $row, and removeDeletedNodes().
Referenced by removeDeletedNodes().
ilObjectDAV::setContentLength | ( | $length | ) |
Sets the length (number of bytes) of the content of this object.
Integer. |
Reimplemented in ilObjFileDAV.
Definition at line 243 of file class.ilObjectDAV.php.
ilObjectDAV::setContentType | ( | $type | ) |
Sets the mime type of the content of this object.
String. |
Reimplemented in ilObjFileDAV.
Definition at line 235 of file class.ilObjectDAV.php.
ilObjectDAV::setResourceName | ( | $name | ) |
Sets the resource name of this object.
Precondition: Object must have been read. @parm String.
Definition at line 151 of file class.ilObjectDAV.php.
References $name, and writelog().
ilObjectDAV::write | ( | ) |
Writes the object data.
Reimplemented in ilObjCategoryDAV, ilObjFileDAV, and ilObjMountPointDAV.
Definition at line 130 of file class.ilObjectDAV.php.
References writelog().
Referenced by ilObjNullDAV\convertToILIASType().
ilObjectDAV::writelog | ( | $message | ) |
Writes a message to the logfile.,.
message | String. |
Definition at line 840 of file class.ilObjectDAV.php.
References $DIC, $log, and $message.
Referenced by __construct(), addCopy(), addMove(), cloneNodes(), ilObjNullDAV\convertToILIASType(), setResourceName(), and write().
ilObjectDAV::$isDebug = false |
The ObjectDAV prints lots of log messages to the ilias log, if this variable is set to true.
Definition at line 53 of file class.ilObjectDAV.php.
ilObjectDAV::$obj |
Application layer object.
Definition at line 47 of file class.ilObjectDAV.php.
Referenced by __construct(), ilObjFileDAV\__construct(), and ilObjNullDAV\__construct().
ilObjectDAV::$refId |
Refid to the object.
Definition at line 42 of file class.ilObjectDAV.php.
Referenced by __construct(), ilObjNullDAV\convertToILIASType(), createObject(), and getRefId().