Inheritance diagram for ilLikeUserSearch:
Collaboration diagram for ilLikeUserSearch:Public Member Functions | |
| ilLikeUserSearch (&$qp_obj) | |
| Constructor public. | |
| __createWhereCondition () | |
Definition at line 37 of file class.ilLikeUserSearch.php.
| ilLikeUserSearch::__createWhereCondition | ( | ) |
Definition at line 50 of file class.ilLikeUserSearch.php.
References ilAbstractSearch::getFields().
{
$fields = $this->getFields();
$field = $fields[0].' ';
$and = " WHERE ( ";
$counter = 0;
foreach($this->query_parser->getQuotedWords() as $word)
{
if($counter++)
{
$and .= " OR ";
}
$and .= $field;
if(strpos($word,'^') === 0)
{
$and .= ("LIKE ('".substr($word,1)."%')");
}
else
{
$and .= ("LIKE ('%".$word."%')");
}
}
return $and.") ";
}
Here is the call graph for this function:| ilLikeUserSearch::ilLikeUserSearch | ( | &$ | qp_obj | ) |
Constructor public.
Definition at line 44 of file class.ilLikeUserSearch.php.
References ilUserSearch::ilUserSearch().
{
parent::ilUserSearch($qp_obj);
}
Here is the call graph for this function:
1.7.1