Public Member Functions

ilLikeForumSearch Class Reference

Inheritance diagram for ilLikeForumSearch:
Collaboration diagram for ilLikeForumSearch:

Public Member Functions

 ilForumSearch (&$qp_obj)
 Constructor public.
 __createPostAndCondition ()
 __createTopicAndCondition ()

Detailed Description

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


Member Function Documentation

ilLikeForumSearch::__createPostAndCondition (  ) 

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

References $counter.

        {
                $concat  = " CONCAT(";
                $concat .= 'pos_message,pos_subject';
                $concat .= ") ";

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

ilLikeForumSearch::__createTopicAndCondition (  ) 

Definition at line 70 of file class.ilLikeForumSearch.php.

References $counter.

        {
                $field = 'thr_subject ';

                $and = " AND( ";

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

ilLikeForumSearch::ilForumSearch ( &$  qp_obj  ) 

Constructor public.

Reimplemented from ilForumSearch.

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

        {
                parent::ilForumSearch($qp_obj);
        }


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