ILIAS
Release_4_0_x_branch Revision 61816
|
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, $q, $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, $name, $namespace, $q, $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, $q, $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, $name, $namespace, and $q.
|
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.