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

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.ilFulltextShopObjectSearch.php.

Constructor & Destructor Documentation

ilFulltextShopObjectSearch::__construct (   $qp_obj)

Reimplemented from ilShopObjectSearch.

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

{
}

Member Function Documentation

ilFulltextShopObjectSearch::__createWhereCondition ( )

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

{
if($this->db->isMysql4_0OrHigher())
{
$where = " WHERE (payment_objects.status = 1 OR payment_objects.status = 2) ";
$agaings_str = '';
foreach($this->query_parser->getQuotedWords(true) as $word)
{
if(strlen($word))
{
$agaings_str .= $word;
$agaings_str .= '* ';
}
}
if(strlen($agaings_str))
{
$where .= " AND MATCH (title,description) AGAINST(' ";
$where .= $agaings_str;
$where .= "' IN BOOLEAN MODE) ";
}
return $where;
}
else
{
$where = " WHERE (payment_objects.status = 1 OR payment_objects.status = 2) ";
$agaings_str = '';
foreach($this->query_parser->getQuotedWords(true) as $word)
{
if(strlen($word))
{
$agaings_str .= ($word.' ');
}
}
if(strlen($agaings_str))
{
$where .= " AND MATCH (title,description) AGAINST(' ";
$where .= $agaings_str;
$where .= "') ";
}
return $where;
}
}

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