55 $objId = $objDAV->getObjectId();
56 $nodeId = $objDAV->getNodeId();
59 $q =
'REPLACE INTO '.$this->table
60 .
' SET obj_id = '.$ilDB->quote($objId)
61 .
', node_id = '.$ilDB->quote($nodeId)
63 .
', name = '.$ilDB->quote($name)
64 .
', value = '.$ilDB->quote($value)
67 $q =
'DELETE FROM '.$this->table
68 .
' WHERE obj_id = '.$ilDB->quote($objId)
69 .
' AND node_id = '.$ilDB->quote($nodeId)
71 .
' AND name = '.$ilDB->quote($name)
75 $r = $ilDB->query($q);
90 $objId = $objDAV->getObjectId();
91 $nodeId = $objDAV->getNodeId();
93 $q =
'SELECT value FROM '.$this->table
94 .
' WHERE obj_id = '.$ilDB->quote($objId)
95 .
' AND node_id ='.$ilDB->quote($nodeId)
97 .
' AND name = '.$ilDB->quote($name)
99 $r = $ilDB->query($q);
102 $value = $row[
'value'];
119 $objId = $objDAV->getObjectId();
120 $nodeId = $objDAV->getNodeId();
122 $q =
'SELECT ns, name, value'
123 .
' FROM '.$this->table
124 .
' WHERE obj_id = '.$ilDB->quote($objId)
125 .
' AND node_id ='.$ilDB->quote($nodeId)
127 $r = $ilDB->query($q);
132 'namespace' => $row[
'ns'],
133 'name' => $row[
'name'],
134 'value' => $row[
'value']
163 public function copy($fromObjDAV, $toObjDAV)
167 $fromObjId = $fromObjDAV->getObjectId();
168 $fromNodeId = $fromObjDAV->getNodeId();
169 $toObjId = $toObjDAV->getObjectId();
170 $toNodeId = $toObjDAV->getNodeId();
172 $q =
'SELECT ns, name, value FROM '.$this->table
173 .
' WHERE obj_id = '.$ilDB->quote($objId)
174 .
' AND node_id ='.$ilDB->quote($nodeId)
177 $r = $ilDB->query($q);
181 $q2 =
'INSERT INTO '.$this->table
182 .
' (obj_id, node_id, ns, name, value)'
184 .
'('.$ilDB->quote($row[
'obj_id'])
185 .
', '.$ilDB->quote($row[
'node_id'])
186 .
', '.$ilDB->quote($row[
'ns'])
187 .
', '.$ilDB->quote($row[
'name'])
188 .
', '.$ilDB->quote($row[
'value'])
191 $r2 = $ilDB->query($q2);
205 $ilias->account->getLogin()
206 .
' DAV ilDAVProperties.'.str_replace(
"\n",
";",$message)