ILIAS  release_8 Revision v8.24
ilLikeLMContentSearch Class Reference
+ Inheritance diagram for ilLikeLMContentSearch:
+ Collaboration diagram for ilLikeLMContentSearch:

Public Member Functions

 __createWhereCondition ()
 
- Public Member Functions inherited from ilLMContentSearch
 performSearch ()
 
 __createInStatement ()
 
- Public Member Functions inherited from ilAbstractSearch
 __construct (ilQueryParser $qp_obj)
 
 setFields (array $a_fields)
 
 getFields ()
 
 setFilter (array $a_filter)
 
 setIdFilter (array $a_id_filter)
 
 getIdFilter ()
 
 appendToFilter (string $a_type)
 
 getFilter ()
 
 __createLocateString ()
 
 __prepareFound (object $row)
 
 performSearch ()
 

Additional Inherited Members

- Protected Attributes inherited from ilAbstractSearch
ilDBInterface $db
 
ilQueryParser $query_parser
 
ilSearchResult $search_result
 
array $object_types
 

Detailed Description

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

Member Function Documentation

◆ __createWhereCondition()

ilLikeLMContentSearch::__createWhereCondition ( )

Definition at line 39 of file class.ilLikeLMContentSearch.php.

39 : string
40 {
41 $concat = " content ";
42
43 $and = " WHERE ( ";
44 $counter = 0;
45 foreach ($this->query_parser->getQuotedWords() as $word) {
46 if ($counter++) {
47 $and .= " OR";
48 }
49 #$and .= $concat;
50 #$and .= ("LIKE ('%".$word."%')");
51 $and .= $this->db->like($concat, 'clob', '%' . $word . '%');
52 }
53 return $and . ") ";
54 }

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