55 $objId = $objDAV->getObjectId();
56 $nodeId = $objDAV->getNodeId();
60 $ilDB->replace($this->table,
62 'obj_id' => array(
'integer',$objId),
63 'node_id' => array(
'integer',$nodeId),
65 'name' => array(
'text',
$name)
67 array(
'value' => array(
'clob',$value))
82 $q =
'DELETE FROM '.$this->table
83 .
' WHERE obj_id = '.$ilDB->quote($objId,
'integer')
84 .
' AND node_id = '.$ilDB->quote($nodeId,
'integer')
86 .
' AND name = '.$ilDB->quote(
$name,
'text')
88 $ilDB->manipulate($q);
91 #$r = $ilDB->query($q);
106 $objId = $objDAV->getObjectId();
107 $nodeId = $objDAV->getNodeId();
109 $q =
'SELECT value FROM '.$this->table
110 .
' WHERE obj_id = '.$ilDB->quote($objId,
'integer')
111 .
' AND node_id ='.$ilDB->quote($nodeId,
'integer')
113 .
' AND name = '.$ilDB->quote(
$name,
'text')
115 $r = $ilDB->query($q);
118 $value =
$row[
'value'];
135 $objId = $objDAV->getObjectId();
136 $nodeId = $objDAV->getNodeId();
138 $q =
'SELECT ns, name, value'
139 .
' FROM '.$this->table
140 .
' WHERE obj_id = '.$ilDB->quote($objId,
'integer')
141 .
' AND node_id ='.$ilDB->quote($nodeId,
'integer')
143 $r = $ilDB->query($q);
148 'namespace' =>
$row[
'ns'],
149 'name' =>
$row[
'name'],
150 'value' =>
$row[
'value']
179 public function copy($fromObjDAV, $toObjDAV)
183 $fromObjId = $fromObjDAV->getObjectId();
184 $fromNodeId = $fromObjDAV->getNodeId();
185 $toObjId = $toObjDAV->getObjectId();
186 $toNodeId = $toObjDAV->getNodeId();
188 $q =
'SELECT ns, name, value FROM '.$this->table
189 .
' WHERE obj_id = '.$ilDB->quote($objId,
'integer')
190 .
' AND node_id ='.$ilDB->quote($nodeId,
'integer');
192 $r = $ilDB->query($q);
196 $q2 =
'INSERT INTO '.$this->table
197 .
' (obj_id, node_id, ns, name, value)'
199 .
'('.$ilDB->quote(
$row[
'obj_id'])
200 .
', '.$ilDB->quote(
$row[
'node_id'])
201 .
', '.$ilDB->quote(
$row[
'ns'])
202 .
', '.$ilDB->quote(
$row[
'name'])
203 .
', '.$ilDB->quote(
$row[
'value'])
206 $r2 = $ilDB->manipulate($q2);
220 $ilias->account->getLogin()
221 .
' DAV ilDAVProperties.'.str_replace(
"\n",
";",$message)