24 include_once
'./Services/Search/classes/class.ilSearchCommandQueueElement.php';
52 if(isset(self::$instance)
and self::$instance)
54 return self::$instance;
66 $query =
"SELECT obj_id, obj_type FROM search_command_queue ".
67 "WHERE obj_id = ".$ilDB->quote($element->
getObjId() ,
'integer').
" ".
68 "AND obj_type = ".$ilDB->quote($element->
getObjType() ,
'text');
87 $query =
"INSERT INTO search_command_queue (obj_id,obj_type,sub_id,sub_type,command,last_update,finished) ".
89 $ilDB->quote($element->
getObjId() ,
'integer').
", ".
90 $ilDB->quote($element->
getObjType() ,
'text').
", ".
93 $ilDB->quote($element->
getCommand() ,
'text').
", ".
108 $query =
"UPDATE search_command_queue ".
109 "SET command = ".$ilDB->quote($element->
getCommand() ,
'text').
", ".
110 "last_update = ".$ilDB->now().
", ".
111 "finished = ".$ilDB->quote(0 ,
'integer').
" ".
112 "WHERE obj_id = ".$ilDB->quote($element->
getObjId() ,
'integer').
" ".
113 "AND obj_type = ".$ilDB->quote($element->
getObjType() ,
'text');
Represents an entry for the search command queue.
store(ilSearchCommandQueueElement $element)
update / save new entry
insert(ilSearchCommandQueueElement $element)
Insert new entry.
static factory()
get singleton instance
update(ilSearchCommandQueueElement $element)
Update existing entry.
__construct()
Constructor.