ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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 Member Functions inherited from ilAbstractSearch
 getValidObjectTypes (ilObjectDefinition $object_definition)
 
- Protected Attributes inherited from ilAbstractSearch
ilDBInterface $db
 
ilQueryParser $query_parser
 
ilSearchResult $search_result
 
array $object_types = []
 

Detailed Description

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

Member Function Documentation

◆ __createWhereCondition()

ilLikeLMContentSearch::__createWhereCondition ( )

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

32 : string
33 {
34 $concat = " content ";
35
36 $and = " WHERE ( ";
37 $counter = 0;
38 foreach ($this->query_parser->getQuotedWords() as $word) {
39 if ($counter++) {
40 $and .= " OR";
41 }
42 #$and .= $concat;
43 #$and .= ("LIKE ('%".$word."%')");
44 $and .= $this->db->like($concat, 'clob', '%' . $word . '%');
45 }
46 return $and . ") ";
47 }
$counter

References $counter.


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