Class ilLikeMediaCastSearch. More...
Inheritance diagram for ilLikeMediaCastSearch:
Collaboration diagram for ilLikeMediaCastSearch:Public Member Functions | |
| ilLikeMediaCastSearch (&$qp_obj) | |
| Constructor public. | |
| __createWhereCondition () | |
Class ilLikeMediaCastSearch.
Performs Mysql Like search
Definition at line 36 of file class.ilLikeMediaCastSearch.php.
| ilLikeMediaCastSearch::__createWhereCondition | ( | ) |
Definition at line 49 of file class.ilLikeMediaCastSearch.php.
{
$concat = " CONCAT(";
$concat .= 'title,content';
$concat .= ") ";
$and = " WHERE context_obj_type='mcst' AND ( ";
$counter = 0;
foreach($this->query_parser->getQuotedWords() as $word)
{
if($counter++)
{
$and .= " OR ";
}
$and .= $concat;
$and .= ("LIKE ('%".$word."%')");
}
return $and.") ";
}
| ilLikeMediaCastSearch::ilLikeMediaCastSearch | ( | &$ | qp_obj | ) |
Constructor public.
Definition at line 43 of file class.ilLikeMediaCastSearch.php.
References ilMediaCastSearch::ilMediaCastSearch().
{
parent::ilMediaCastSearch($qp_obj);
}
Here is the call graph for this function:
1.7.1