Public Member Functions

ilLikeMetaDataSearch Class Reference

Inheritance diagram for ilLikeMetaDataSearch:
Collaboration diagram for ilLikeMetaDataSearch:

Public Member Functions

 ilLikeMetaDataSearch (&$qp_obj)
 Constructor public.
 __createKeywordWhereCondition ()
 __createContributeWhereCondition ()
 __createTitleWhereCondition ()
 __createDescriptionWhereCondition ()

Detailed Description

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


Member Function Documentation

ilLikeMetaDataSearch::__createContributeWhereCondition (  ) 

Definition at line 67 of file class.ilLikeMetaDataSearch.php.

References $counter.

        {
                $concat = ' entity ';
                $where = " WHERE ";
                $counter = 0;
                foreach($this->query_parser->getQuotedWords() as $word)
                {
                        if($counter++)
                        {
                                $where .= "OR";
                        }
                        $where .= $concat;
                        $where .= (" LIKE ('%".$word."%')");
                }
                return $where;
        }               

ilLikeMetaDataSearch::__createDescriptionWhereCondition (  ) 

Definition at line 100 of file class.ilLikeMetaDataSearch.php.

References $counter.

        {
                $concat = ' description ';
                $where = " WHERE ";
                $counter = 0;
                foreach($this->query_parser->getQuotedWords() as $word)
                {
                        if($counter++)
                        {
                                $where .= "OR";
                        }
                        $where .= $concat;
                        $where .= (" LIKE ('%".$word."%')");
                }
                return $where;
        }

ilLikeMetaDataSearch::__createKeywordWhereCondition (  ) 

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

References $counter.

        {
                $concat = ' keyword ';
                $where = " WHERE ";
                $counter = 0;
                foreach($this->query_parser->getQuotedWords() as $word)
                {
                        if($counter++)
                        {
                                $where .= "OR";
                        }
                        $where .= $concat;
                        $where .= (" LIKE ('%".$word."%')");
                }
                return $where;
        }               

ilLikeMetaDataSearch::__createTitleWhereCondition (  ) 

Definition at line 83 of file class.ilLikeMetaDataSearch.php.

References $counter.

        {
                $concat = ' CONCAT(title,coverage) ';
                $where = " WHERE ";
                $counter = 0;
                foreach($this->query_parser->getQuotedWords() as $word)
                {
                        if($counter++)
                        {
                                $where .= "OR";
                        }
                        $where .= $concat;
                        $where .= (" LIKE ('%".$word."%')");
                }
                return $where;
        }

ilLikeMetaDataSearch::ilLikeMetaDataSearch ( &$  qp_obj  ) 

Constructor public.

Definition at line 44 of file class.ilLikeMetaDataSearch.php.

References ilMetaDataSearch::ilMetaDataSearch().

        {
                parent::ilMetaDataSearch($qp_obj);
        }

Here is the call graph for this function:


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