|
ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Collaboration diagram for ilDAVProperties:Public Member Functions | |
| put ($objDAV, $namespace, $name, $value) | |
| Puts a property for the specified DAV object. More... | |
| get ($objDAV, $namespace, $name, $value) | |
| Gets a property from the specified DAV object. More... | |
| getAll ($objDAV) | |
| Gets all properties from the specified DAV object. More... | |
| copy ($fromObjDAV, $toObjDAV) | |
| Moves all properties from one dav object to another. More... | |
Protected Member Functions | |
| writelog ($message) | |
| Writes a message to the logfile.,. More... | |
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 $DIC; $ilDB = $DIC['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 183 of file class.ilDAVProperties.php.
References $DIC, $ilDB, $r, $result, $row, and ilDBConstants\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 103 of file class.ilDAVProperties.php.
References $DIC, $ilDB, $namespace, $r, $row, and ilDBConstants\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 133 of file class.ilDAVProperties.php.
References $DIC, $ilDB, $r, $result, $row, and ilDBConstants\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 $DIC, $ilDB, and $namespace.
|
protected |
Writes a message to the logfile.,.
| message | String. |
Definition at line 221 of file class.ilDAVProperties.php.
|
private |
Definition at line 39 of file class.ilDAVProperties.php.