33 include_once
'Services/Search/classes/class.ilAbstractSearch.php';
60 $this->definition = $a_def;
90 $and =
"AND ".$ilDB->in(
'type',$this->
getFilter(),
false,
'text');
98 $query =
"SELECT amv.obj_id,type ".
99 "FROM adv_md_values amv ".
100 "JOIN object_data od ON amv.obj_id = od.obj_id ".
101 "WHERE value >= ".$ilDB->quote($this->range_start ,
'text').
" ".
102 "AND value <= ".$ilDB->quote($this->range_end ,
'text').
" ".
103 "AND field_id = ".$this->db->quote($this->
getDefinition()->getFieldId() ,
'integer').
" ".
109 $where = $this->__createWhereCondition();
112 $query =
"SELECT amv.obj_id,type ".
114 "FROM adv_md_values amv ".
115 "JOIN object_data od ON amv.obj_id = od.obj_id ".
117 "AND field_id = ".$this->db->quote($this->
getDefinition()->getFieldId() ,
'integer').
" ".
128 $this->search_result->addEntry(
$row->obj_id,
$row->type,$this->__prepareFound(
$row));
144 $this->range_start = $start;
145 $this->range_end = $end;
__createLocateString()
build locate string in case of AND search
setFields($a_fields)
Set fields to search.
getFilter()
get object type to search in
const DB_FETCHMODE_OBJECT
performSearch()
perform search
setDefinition($a_def)
set Definition
__construct($query_parser)
Constructor.
getDefinition()
get definition
setTimeRange($start, $end)
set time range