ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilLikeGlossaryDefinitionSearch Class Reference
+ Inheritance diagram for ilLikeGlossaryDefinitionSearch:
+ Collaboration diagram for ilLikeGlossaryDefinitionSearch:

Public Member Functions

 __createWhereCondition ()
 
- Public Member Functions inherited from ilGlossaryDefinitionSearch
performSearch ()
 
- 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.ilLikeGlossaryDefinitionSearch.php.

Member Function Documentation

◆ __createWhereCondition()

ilLikeGlossaryDefinitionSearch::__createWhereCondition ( )

Definition at line 40 of file class.ilLikeGlossaryDefinitionSearch.php.

References $counter, and $ilDB.

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

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