30 $this->server_id = $a_server_id;
50 $this->server_id = $a_id;
55 $this->mid = $a_member_id;
70 $this->cs_root = $root;
90 $this->ref_id = $a_id;
110 $this->title_update = $enabled;
120 $this->position_update = $enabled;
130 $this->tree_update = $enabled;
149 $query =
'INSERT INTO ecs_node_mapping_a (server_id,mid,cs_root,cs_id,ref_id,obj_id,title_update,position_update,tree_update) '.
153 $ilDB->quote($this->
getTreeId(),
'integer').
', '.
154 $ilDB->quote($this->
getCSId(),
'integer').
', '.
155 $ilDB->quote($this->
getRefId(),
'integer').
', '.
156 $ilDB->quote($this->
getObjId(),
'integer').
', '.
161 $ilDB->manipulate(
$query);
171 public function delete()
175 $query =
'DELETE FROM ecs_node_mapping_a '.
176 'WHERE server_id = '.$ilDB->quote($this->
getServerId(),
'integer').
' '.
177 'AND mid = '.$ilDB->quote($this->
getMemberId(),
'integer').
' '.
178 'AND cs_root = '.$ilDB->quote($this->
getTreeId(),
'integer').
' '.
179 'AND cs_id = '.$ilDB->quote($this->
getCSId(),
'integer');
180 $ilDB->manipulate(
$query);
193 $query =
'SELECT * FROM ecs_node_mapping_a '.
194 'WHERE server_id = '.$ilDB->quote($this->
getServerId(),
'integer').
' '.
195 'AND mid = '.$ilDB->quote($this->
getMemberId(),
'integer').
' '.
196 'AND cs_root = '.$ilDB->quote($this->
getTreeId(),
'integer').
' '.
197 'AND cs_id = '.$ilDB->quote($this->
getCSId(),
'integer').
' ';
200 #$GLOBALS['ilLog']->write(__METHOD__.': '.$query);
209 $this->mapped =
true;
217 $query =
'DELETE FROM ecs_node_mapping_a'.
218 ' WHERE server_id = '.$ilDB->quote($a_server_id,
'integer');
219 $ilDB->manipulate(
$query);