ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilLikeLMContentSearch Class Reference
+ Inheritance diagram for ilLikeLMContentSearch:
+ Collaboration diagram for ilLikeLMContentSearch:

Public Member Functions

 __createWhereCondition ()
 
- Public Member Functions inherited from ilLMContentSearch
 performSearch ()
 
 __createInStatement ()
 
 __createAndCondition ()
 
- Public Member Functions inherited from ilAbstractSearch
 __construct ($qp_obj)
 Constructor public. More...
 
 setFields ($a_fields)
 Set fields to search. More...
 
 getFields ()
 Get fields to search. More...
 
 setFilter ($a_filter)
 set object type to search in More...
 
 setIdFilter ($a_id_filter)
 Set id filter Filters search by given object id. More...
 
 getIdFilter ()
 Get Id filter. More...
 
 appendToFilter ($a_type)
 Append object type to filter. More...
 
 getFilter ()
 get object type to search in More...
 
 __createLocateString ()
 build locate string in case of AND search More...
 
 __prepareFound (&$row)
 
 performSearch ()
 

Additional Inherited Members

- Data Fields inherited from ilAbstractSearch
 $db = null
 
 $query_parser = null
 
 $search_result = null
 
 $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.

References $counter, and $ilDB.

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

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