Public Member Functions | |
ilLMContentSearch (&$query_parser) | |
Constructor public. | |
& | performSearch () |
__createInStatement () | |
__createAndCondition () |
Definition at line 37 of file class.ilLMContentSearch.php.
ilLMContentSearch::__createAndCondition | ( | ) |
Definition at line 97 of file class.ilLMContentSearch.php.
{
echo "Overwrite me!";
}
ilLMContentSearch::__createInStatement | ( | ) |
Definition at line 79 of file class.ilLMContentSearch.php.
References $type, and ilAbstractSearch::getFilter().
Referenced by performSearch().
{ if(!$this->getFilter()) { return ''; } else { $type = "('"; $type .= implode("','",$this->getFilter()); $type .= "')"; $in = " AND parent_type IN ".$type; return $in; } }
ilLMContentSearch::ilLMContentSearch | ( | &$ | query_parser | ) |
Constructor public.
Definition at line 44 of file class.ilLMContentSearch.php.
References ilAbstractSearch::$query_parser, and ilAbstractSearch::ilAbstractSearch().
Referenced by ilFulltextLMContentSearch::ilFulltextLMContentSearch(), and ilLikeLMContentSearch::ilLikeLMContentSearch().
{ global $ilDB; parent::ilAbstractSearch($query_parser); }
& ilLMContentSearch::performSearch | ( | ) |
Reimplemented from ilAbstractSearch.
Definition at line 51 of file class.ilLMContentSearch.php.
References $query, $res, $row, __createInStatement(), ilAbstractSearch::__createLocateString(), and ilAbstractSearch::setFields().
{ $this->setFields(array('content')); $in = $this->__createInStatement(); $where = $this->__createWhereCondition(); $locate = $this->__createLocateString(); $query = "SELECT page_id,parent_id,parent_type ". $locate. "FROM page_object, lm_data ". $where. "AND obj_id = page_id ". $in; $res = $this->db->query($query); while($row = $res->fetchRow(DB_FETCHMODE_OBJECT)) { $this->search_result->addEntry($row->parent_id,$row->parent_type,$this->__prepareFound($row),$row->page_id); } return $this->search_result; }