Definition at line 37 of file class.ilLikeForumSearch.php.
 
◆ __createPostAndCondition()
      
        
          | ilLikeForumSearch::__createPostAndCondition  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 39 of file class.ilLikeForumSearch.php.
   39                                              : string
   40    {
   41 
   42        
   43
   44
   45
   46
   47        $concat = $this->db->concat(
   48            array(
   49                array('pos_subject','text'),
   50                array('pos_message','text'))
   51        );
   52 
   53        $and = "  AND ( ";
   54        $counter = 0;
   55        foreach ($this->query_parser->getQuotedWords() as $word) {
   56            if ($counter++) {
   57                $and .= " OR";
   58            }
   59            #$and .= $concat;
   60            #$and .= ("LIKE ('%".$word."%')");
   61            $and .= $this->db->like($concat, 'clob', '%' . $word . '%');
   62        }
   63        return $and . ") ";
   64    }
 
 
 
◆ __createTopicAndCondition()
      
        
          | ilLikeForumSearch::__createTopicAndCondition  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 66 of file class.ilLikeForumSearch.php.
   66                                               : string
   67    {
   68        $field = 'thr_subject ';
   69        $and = " AND( ";
   70 
   71        $counter = 0;
   72        foreach ($this->query_parser->getQuotedWords() as $word) {
   73            if ($counter++) {
   74                $and .= " OR ";
   75            }
   76            #$and .= $field;
   77            #$and .= ("LIKE ('%".$word."%')");
   78            $and .= $this->db->like($field, 'text', '%' . $word . '%');
   79        }
   80        return $and . " ) ";
   81    }
 
 
 
The documentation for this class was generated from the following file: