ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
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. |
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 894 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 530 of file class.ilObjectDAV.php.
References $DIC, array, cloneNodes(), getRefId(), 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 609 of file class.ilObjectDAV.php.
References $DIC, $log, getRefId(), and writelog().
ilObjectDAV::children | ( | ) |
Returns the children of this object.
Definition at line 755 of file class.ilObjectDAV.php.
References $data, $DIC, array, 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 791 of file class.ilObjectDAV.php.
References array, and children().
ilObjectDAV::cloneNodes | ( | $srcRef, | |
$dstRef, | |||
& | $mapping, | ||
$newName = null |
|||
) |
Recursively clones all nodes of the RBAC tree.
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 553 of file class.ilObjectDAV.php.
References $DIC, and writelog().
Referenced by addCopy().
ilObjectDAV::createCollection | ( | $name | ) |
Creates a dav collection as a child of this object.
string | the name of the collection. |
Definition at line 399 of file class.ilObjectDAV.php.
References $DIC, 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 424 of file class.ilObjectDAV.php.
References $DIC, 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 461 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.
Definition at line 389 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 479 of file class.ilObjectDAV.php.
References $DIC, 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 816 of file class.ilObjectDAV.php.
Referenced by ilObjMountPointDAV\children(), ilObjNullDAV\convertToILIASType(), ilDAVServer\getObject(), and ilDAVServer\toObjectPath().
ilObjectDAV::getContentData | ( | ) |
Returns the content of the object as a byte array.
Definition at line 291 of file class.ilObjectDAV.php.
ilObjectDAV::getContentLength | ( | ) |
Returns the number of bytes of the content.
Definition at line 253 of file class.ilObjectDAV.php.
ilObjectDAV::getContentOutputStream | ( | ) |
Returns an output stream to the content.
Definition at line 269 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. |
Definition at line 282 of file class.ilObjectDAV.php.
ilObjectDAV::getContentStream | ( | ) |
Returns the content of the object as a stream.
Definition at line 261 of file class.ilObjectDAV.php.
ilObjectDAV::getContentType | ( | ) |
Returns the mime type of the content of this object.
Definition at line 229 of file class.ilObjectDAV.php.
ilObjectDAV::getCreationTimestamp | ( | ) |
Returns the creation date of this object as a Unix timestamp.
Precondition: Object must have been read.
Definition at line 173 of file class.ilObjectDAV.php.
ilObjectDAV::getDisplayName | ( | ) |
Returns the display name of this object.
Precondition: Object must have been read.
Definition at line 163 of file class.ilObjectDAV.php.
ilObjectDAV::getILIASCollectionType | ( | ) |
Returns the ilias type for collections that can be created as children of this object.
Definition at line 373 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 380 of file class.ilObjectDAV.php.
Referenced by createFile(), and createFileFromNull().
ilObjectDAV::getILIASType | ( | ) |
Returns the ilias type of the current object.
Definition at line 361 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.
Definition at line 183 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 94 of file class.ilObjectDAV.php.
ilObjectDAV::getObjectId | ( | ) |
Returns the object id of this object.
Definition at line 83 of file class.ilObjectDAV.php.
Referenced by __toString().
ilObjectDAV::getRefId | ( | ) |
Returns the ref id of this object.
Definition at line 75 of file class.ilObjectDAV.php.
References $refId.
Referenced by addCopy(), addMove(), children(), ilObjNullDAV\convertToILIASType(), ilObjCategoryDAV\createCollection(), createCollection(), createFile(), createFileFromNull(), createNull(), ilObjFileDAV\initFromNull(), initFromNull(), isPermitted(), ilObjGroupDAV\read(), ilObjCourseDAV\read(), read(), ilObjNullDAV\read(), ilObjRootDAV\read(), and ilObjFileDAV\read().
ilObjectDAV::getResourceName | ( | ) |
Returns the resource name of this object.
Precondition: Object must have been read.
Definition at line 144 of file class.ilObjectDAV.php.
Referenced by ilObjFileDAV\initFromNull().
ilObjectDAV::getResourceType | ( | ) |
Returns the DAV resource type of this object.
Definition at line 193 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.
Definition at line 105 of file class.ilObjectDAV.php.
References getRefId().
ilObjectDAV::isCollection | ( | ) |
Returns true if this object is a DAV collection.
Definition at line 203 of file class.ilObjectDAV.php.
References getResourceType().
ilObjectDAV::isFile | ( | ) |
Returns true if this object is a DAV file.
Definition at line 212 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 220 of file class.ilObjectDAV.php.
References getResourceType().
ilObjectDAV::isOnline | ( | ) |
Returns true if the object is online.
Definition at line 299 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'. |
Definition at line 314 of file class.ilObjectDAV.php.
References $_GET, $DIC, $GLOBALS, getRefId(), and isOnline().
ilObjectDAV::read | ( | ) |
Reads the object data.
Definition at line 117 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 507 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
public
integer | ref_id of source object |
boolean |
Definition at line 696 of file class.ilObjectDAV.php.
References $DIC, $ilDB, $log, $query, $res, $row, and array.
ilObjectDAV::setContentLength | ( | $length | ) |
Sets the length (number of bytes) of the content of this object.
Integer. |
Definition at line 245 of file class.ilObjectDAV.php.
ilObjectDAV::setContentType | ( | $type | ) |
Sets the mime type of the content of this object.
String. |
Definition at line 237 of file class.ilObjectDAV.php.
ilObjectDAV::setResourceName | ( | $name | ) |
Sets the resource name of this object.
Precondition: Object must have been read. String.
Definition at line 153 of file class.ilObjectDAV.php.
References writelog().
ilObjectDAV::write | ( | ) |
Writes the object data.
Definition at line 132 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 869 of file class.ilObjectDAV.php.
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 ilObjFileDAV\__construct(), __construct(), and ilObjNullDAV\__construct().
ilObjectDAV::$refId |
Refid to the object.
Definition at line 42 of file class.ilObjectDAV.php.
Referenced by __construct(), ilObjNullDAV\convertToILIASType(), and getRefId().