ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilLikeMediaCastSearch Class Reference

Class ilLikeMediaCastSearch. More...

+ Inheritance diagram for ilLikeMediaCastSearch:
+ Collaboration diagram for ilLikeMediaCastSearch:

Public Member Functions

 __createWhereCondition ()
 
- Public Member Functions inherited from ilMediaCastSearch
 performSearch ()
 
- 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

Class ilLikeMediaCastSearch.

Performs Mysql Like search

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e

Definition at line 36 of file class.ilLikeMediaCastSearch.php.

Member Function Documentation

◆ __createWhereCondition()

ilLikeMediaCastSearch::__createWhereCondition ( )

Definition at line 38 of file class.ilLikeMediaCastSearch.php.

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

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