ILIAS
Release_4_1_x_branch Revision 61804
|
Public Member Functions | |
put ($objDAV, $namespace, $name, $value) | |
Puts a property for the specified DAV object. | |
get ($objDAV, $namespace, $name, $value) | |
Gets a property from the specified DAV object. | |
getAll ($objDAV) | |
Gets all properties from the specified DAV object. | |
copy ($fromObjDAV, $toObjDAV) | |
Moves all properties from one dav object to another. |
Protected Member Functions | |
writelog ($message) | |
Writes a message to the logfile.,. |
Private Attributes | |
$table = 'dav_property' |
Definition at line 37 of file class.ilDAVProperties.php.
ilDAVProperties::copy | ( | $fromObjDAV, | |
$toObjDAV | |||
) |
Moves all properties from one dav object to another.
/ public function move($fromObjDAV, $toObjDAV) { global $ilDB;
$fromObjId = $fromObjDAV->getObjectId(); $fromNodeId = $fromObjDAV->getNodeId(); $toObjId = $toObjDAV->getObjectId(); $toNodeId = $toObjDAV->getNodeId();
$q = 'UPDATE '.$this->table .' SET obj_id = '.$ilDB->quote($toObjId) .', node_id = '.$ilDB->quote($toNodeId) .' WHERE obj_id = '.$ilDB->quote($fromObjId) .' AND node_id ='.$ilDB->quote($toNodeId) ; $r = $ilDB->query($q); } Copies all properties from one dav object to another.
Definition at line 179 of file class.ilDAVProperties.php.
References $ilDB, $result, $row, and DB_FETCHMODE_ASSOC.
ilDAVProperties::get | ( | $objDAV, | |
$namespace, | |||
$name, | |||
$value | |||
) |
Gets a property from the specified DAV object.
ilObjectDAV | DAV object for which the property is put |
string | Namespace of the property |
string | Name of the property |
Definition at line 102 of file class.ilDAVProperties.php.
References $ilDB, $namespace, $row, and DB_FETCHMODE_ASSOC.
ilDAVProperties::getAll | ( | $objDAV | ) |
Gets all properties from the specified DAV object.
ilObjectDAV | DAV object for which the property is put |
Definition at line 131 of file class.ilDAVProperties.php.
References $ilDB, $result, $row, and DB_FETCHMODE_ASSOC.
ilDAVProperties::put | ( | $objDAV, | |
$namespace, | |||
$name, | |||
$value | |||
) |
Puts a property for the specified DAV object.
ilObjectDAV | DAV object for which the property is put |
string | Namespace of the property |
string | Name of the property |
string | Value of the property. Specify null, to remove the property. |
Definition at line 50 of file class.ilDAVProperties.php.
References $ilDB, and $namespace.
|
protected |
Writes a message to the logfile.,.
message | String. |
Definition at line 216 of file class.ilDAVProperties.php.
References $log.
|
private |
Definition at line 39 of file class.ilDAVProperties.php.