ILIAS  Release_3_10_x_branch Revision 61812
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilLikeShopObjectSearch Class Reference
+ Inheritance diagram for ilLikeShopObjectSearch:
+ Collaboration diagram for ilLikeShopObjectSearch:

Public Member Functions

 __construct ($qp_obj)
 __createWhereCondition ()
- Public Member Functions inherited from ilShopObjectSearch
 setCustomSearchResultObject ($a_search_result_obect)
 setFilterShopTopicId ($a_topic_id)
 getFilterShopTopicId ()
 performSearch ()
 __createInStatement ()
- 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
 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

Definition at line 35 of file class.ilLikeShopObjectSearch.php.

Constructor & Destructor Documentation

ilLikeShopObjectSearch::__construct (   $qp_obj)

Reimplemented from ilShopObjectSearch.

Definition at line 37 of file class.ilLikeShopObjectSearch.php.

{
}

Member Function Documentation

ilLikeShopObjectSearch::__createWhereCondition ( )

Definition at line 42 of file class.ilLikeShopObjectSearch.php.

{
$concat = ' CONCAT(';
$concat .= 'title, description';
$concat .= ') ';
$where = 'WHERE (payment_objects.status = 1 OR payment_objects.status = 2) AND (';
$counter = 0;
foreach($this->query_parser->getQuotedWords() as $word)
{
if($counter++)
{
$where .= 'OR';
}
$where .= $concat;
$where .= ("LIKE ('%".$word."%') ");
}
$where .= ') ';
return $where;
}

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