ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilFulltextObjectSearch Class Reference
+ Inheritance diagram for ilFulltextObjectSearch:
+ Collaboration diagram for ilFulltextObjectSearch:

Public Member Functions

 ilFulltextObjectSearch (&$qp_obj)
 Constructor public.
 __createWhereCondition ()
- Public Member Functions inherited from ilObjectSearch
 ilObjectSearch (&$qp_obj)
 Constructor public.
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
 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

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

Member Function Documentation

ilFulltextObjectSearch::__createWhereCondition ( )

Definition at line 48 of file class.ilFulltextObjectSearch.php.

{
if($this->db->isMysql4_0OrHigher())
{
$where = " WHERE MATCH (title,description) AGAINST(' ";
#$prefix = $this->query_parser->getCombination() == 'and' ? '+' : '';
foreach($this->query_parser->getQuotedWords(true) as $word)
{
#$where .= $prefix;
$where .= $word;
$where .= '* ';
}
$where .= "' IN BOOLEAN MODE) ";
return $where;
}
else
{
$where = " WHERE MATCH (title,description) AGAINST(' ";
foreach($this->query_parser->getQuotedWords(true) as $word)
{
$where .= ($word.' ');
}
$where .= "')";
return $where;
}
}
ilFulltextObjectSearch::ilFulltextObjectSearch ( $qp_obj)

Constructor public.

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

References ilObjectSearch\ilObjectSearch().

{
}

+ Here is the call graph for this function:


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