ILIAS
Release_3_10_x_branch Revision 61812
|
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 163 of file class.ilDAVProperties.php.
References $result, 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 86 of file class.ilDAVProperties.php.
References $namespace, 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 115 of file class.ilDAVProperties.php.
References $result, 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 $namespace.
|
protected |
Writes a message to the logfile.,.
message | String. |
Definition at line 201 of file class.ilDAVProperties.php.
References $log.
|
private |
Definition at line 39 of file class.ilDAVProperties.php.