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

Public Member Functions

 __construct ($qp_obj)
 __createKeywordWhereCondition ()
 __createContributeWhereCondition ()
 __createTitleWhereCondition ()
 __createDescriptionWhereCondition ()
- Public Member Functions inherited from ilShopMetaDataSearch
 setCustomSearchResultObject ($a_search_result_obect)
 setFilterShopTopicId ($a_topic_id)
 getFilterShopTopicId ()
 setMode ($a_mode)
 getMode ()
 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
 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 ilShopMetaDataSearch
 $mode = ''
 $query_parser = null
 $db = null

Detailed Description

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

Constructor & Destructor Documentation

ilLikeShopMetaDataSearch::__construct (   $qp_obj)

Reimplemented from ilShopMetaDataSearch.

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

{
}

Member Function Documentation

ilLikeShopMetaDataSearch::__createContributeWhereCondition ( )

Definition at line 59 of file class.ilLikeShopMetaDataSearch.php.

{
$concat = ' entity ';
$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."%')");
}
return $where.')';
}
ilLikeShopMetaDataSearch::__createDescriptionWhereCondition ( )

Definition at line 94 of file class.ilLikeShopMetaDataSearch.php.

{
$concat = ' description ';
$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."%')");
}
return $where.')';
}
ilLikeShopMetaDataSearch::__createKeywordWhereCondition ( )

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

{
$concat = ' keyword ';
$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."%')");
}
return $where.')';
}
ilLikeShopMetaDataSearch::__createTitleWhereCondition ( )

Definition at line 76 of file class.ilLikeShopMetaDataSearch.php.

{
$concat = ' title ';
$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."%')");
}
return $where.')';
}

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