ILIAS  release_8 Revision v8.19-1-g4e8f2f9140c
All Data Structures Namespaces Files Functions Variables Modules Pages
ilLikeObjectSearch Class Reference
+ Inheritance diagram for ilLikeObjectSearch:
+ Collaboration diagram for ilLikeObjectSearch:

Public Member Functions

 __createWhereCondition ()
 
- Public Member Functions inherited from ilObjectSearch
 __construct (ilQueryParser $qp_obj)
 
 performSearch ()
 
 __createInStatement ()
 
 setCreationDateFilterDate (ilDate $day)
 
 setCreationDateFilterOperator (int $a_operator)
 
 getCreationDateFilterDate ()
 
 getCreationDateFilterOperator ()
 
- 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

- Data Fields inherited from ilObjectSearch
const CDATE_OPERATOR_BEFORE = 1
 
const CDATE_OPERATOR_AFTER = 2
 
const CDATE_OPERATOR_ON = 3
 
- 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.ilLikeObjectSearch.php.

Member Function Documentation

◆ __createWhereCondition()

ilLikeObjectSearch::__createWhereCondition ( )

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

39  : string
40  {
41  $concat = $this->db->concat(
42  array(
43  array('title','text'),
44  array('description','text'))
45  );
46  $where = "WHERE (";
47  $counter = 0;
48  foreach ($this->query_parser->getQuotedWords() as $word) {
49  if ($counter++) {
50  $where .= "OR";
51  }
52 
53  $where .= $this->db->like($concat, 'text', '%' . $word . '%');
54  }
55  $where .= ') ';
56  return $where;
57  }

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