Public Member Functions

ilLikeUserSearch Class Reference

Inheritance diagram for ilLikeUserSearch:
Collaboration diagram for ilLikeUserSearch:

Public Member Functions

 ilLikeUserSearch (&$qp_obj)
 Constructor public.
 __createWhereCondition ()

Detailed Description

Definition at line 37 of file class.ilLikeUserSearch.php.


Member Function Documentation

ilLikeUserSearch::__createWhereCondition (  ) 

Definition at line 50 of file class.ilLikeUserSearch.php.

References $counter, $fields, and 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:


The documentation for this class was generated from the following file: