ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilLikeMediaCastSearch Class Reference

Class ilLikeMediaCastSearch. More...

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

Public Member Functions

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

Additional Inherited Members

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

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

Member Function Documentation

ilLikeMediaCastSearch::__createWhereCondition ( )

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

References $ilDB.

{
global $ilDB;
/*
$concat = " CONCAT(";
$concat .= 'title,content';
$concat .= ") ";
*/
/*
$concat = $ilDB->concat(
array(
'title' => 'text',
'content' => 'clob'));
*/
$and = " WHERE context_obj_type='mcst' AND ( ";
$counter = 0;
foreach($this->query_parser->getQuotedWords() as $word)
{
if($counter++)
{
$and .= " OR ";
}
#$and .= $concat;
#$and .= ("LIKE ('%".$word."%')");
$and .= $ilDB->like('title','text','%'.$word.'%');
$and .= ' OR ';
$and .= $ilDB->like('content','clob','%'.$word.'%');
}
return $and.") ";
}
ilLikeMediaCastSearch::ilLikeMediaCastSearch ( $qp_obj)

Constructor public.

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

References ilMediaCastSearch\ilMediaCastSearch().

+ Here is the call graph for this function:


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