ILIAS  Release_4_2_x_branch Revision 61807
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilFulltextWikiContentSearch Class Reference

Class ilFulltextWikiContentSearch. More...

+ Inheritance diagram for ilFulltextWikiContentSearch:
+ Collaboration diagram for ilFulltextWikiContentSearch:

Public Member Functions

 ilFulltextWikiContentSearch (&$qp_obj)
 Constructor public.
 __createWhereCondition ()
- Public Member Functions inherited from ilWikiContentSearch
 ilWikiContentSearch (&$query_parser)
 Constructor public.
performSearch ()
 __createInStatement ()
 __createAndCondition ()
- 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

Class ilFulltextWikiContentSearch.

class for searching meta

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

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

Member Function Documentation

ilFulltextWikiContentSearch::__createWhereCondition ( )

Definition at line 47 of file class.ilFulltextWikiContentSearch.php.

{
// IN BOOLEAN MODE
if($this->db->getDbType() == "mysql")
{
$where .= " WHERE MATCH(content,title) AGAINST('";
foreach($this->query_parser->getQuotedWords(true) as $word)
{
$where .= $word;
$where .= '* ';
}
$where .= "' IN BOOLEAN MODE) ";
}
else if($this->db->getDbType() == "oracle")
{
// fallback to like
$where.= " WHERE ";
foreach($this->query_parser->getQuotedWords(true) as $word)
{
$where.= " ".$sep." ";
$where.= $this->db->like("content", "clob", $word);
$where.= " OR ";
$where.= $this->db->like("title", "text", $word);
$sep = "OR";
}
}
return $where;
}
ilFulltextWikiContentSearch::ilFulltextWikiContentSearch ( $qp_obj)

Constructor public.

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

References ilWikiContentSearch\ilWikiContentSearch().

+ Here is the call graph for this function:


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