Inheritance diagram for ilFulltextLMContentSearch:
Collaboration diagram for ilFulltextLMContentSearch:Public Member Functions | |
| ilFulltextLMContentSearch (&$qp_obj) | |
| Constructor public. | |
| __createWhereCondition () | |
Definition at line 37 of file class.ilFulltextLMContentSearch.php.
| ilFulltextLMContentSearch::__createWhereCondition | ( | ) |
Definition at line 49 of file class.ilFulltextLMContentSearch.php.
{
// IN BOOLEAN MODE
if($this->db->isMysql4_0OrHigher())
{
$where .= " WHERE MATCH(content) AGAINST('";
foreach($this->query_parser->getQuotedWords(true) as $word)
{
$where .= $word;
$where .= '* ';
}
$where .= "' IN BOOLEAN MODE) ";
}
else
{
// i do not see any reason, but MATCH AGAINST(...) OR MATCH AGAINST(...) does not use an index
$where .= " WHERE MATCH (content) AGAINST(' ";
foreach($this->query_parser->getQuotedWords(true) as $word)
{
$where .= $word;
$where .= ' ';
}
$where .= "') ";
}
return $where;
}
| ilFulltextLMContentSearch::ilFulltextLMContentSearch | ( | &$ | qp_obj | ) |
Constructor public.
Definition at line 44 of file class.ilFulltextLMContentSearch.php.
References ilLMContentSearch::ilLMContentSearch().
{
parent::ilLMContentSearch($qp_obj);
}
Here is the call graph for this function:
1.7.1