ILIAS  Release_5_0_x_branch Revision 61816
 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 ()
 __createLocateString ()
 build locate string in case of AND search
 __prepareFound (&$row)
- 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

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 74 of file class.ilLikeShopMetaDataSearch.php.

References ilShopMetaDataSearch\getFilterShopTopicId().

{
$where = '';
$types = array();
$values = array();
$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 .= $this->db->like(' entity', 'text', '%%'.$word.'%%');
}
if($this->getFilterShopTopicId() != 0)
{
$where .= ' AND pt_topic_fk = %s ';
$types[] = 'integer';
$values[] = $this->getFilterShopTopicId();
}
return array(
'query' => $where.')',
'types' => $types,
'values' => $values
);
}

+ Here is the call graph for this function:

ilLikeShopMetaDataSearch::__createDescriptionWhereCondition ( )

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

References ilShopMetaDataSearch\getFilterShopTopicId().

{
$where = '';
$types = array();
$values = array();
$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 .= $this->db->like(' description', 'text', '%%'.$word.'%%');
}
if($this->getFilterShopTopicId() != 0)
{
$where .= ' AND pt_topic_fk = %s ';
$types[] = 'integer';
$values[] = $this->getFilterShopTopicId();
}
return array(
'query' => $where.')',
'types' => $types,
'values' => $values
);
}

+ Here is the call graph for this function:

ilLikeShopMetaDataSearch::__createKeywordWhereCondition ( )

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

References ilShopMetaDataSearch\getFilterShopTopicId().

{
$where = '';
$types = array();
$values = array();
$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 .= $this->db->like(' keyword', 'text', '%%'.$word.'%%');
}
if($this->getFilterShopTopicId() != 0)
{
$where .= ' AND pt_topic_fk = %s ';
$types[] = 'integer';
$values[] = $this->getFilterShopTopicId();
}
return array(
'query' => $where.')',
'types' => $types,
'values' => $values
);
}

+ Here is the call graph for this function:

ilLikeShopMetaDataSearch::__createTitleWhereCondition ( )

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

References ilShopMetaDataSearch\getFilterShopTopicId().

{
$where = '';
$types = array();
$values = array();
$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 .= $this->db->like(' title', 'text', '%%'.$word.'%%');
}
if($this->getFilterShopTopicId() != 0)
{
$where .= ' AND pt_topic_fk = %s ';
$types[] = 'integer';
$values[] = $this->getFilterShopTopicId();
}
return array(
'query' => $where.')',
'types' => $types,
'values' => $values
);
}

+ Here is the call graph for this function:


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