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

Public Member Functions

 __construct ($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

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

Constructor & Destructor Documentation

ilLikeWikiContentSearch::__construct (   $qp_obj)

Constructor public.

Definition at line 44 of file class.ilLikeWikiContentSearch.php.

{
}

Member Function Documentation

ilLikeWikiContentSearch::__createWhereCondition ( )

Definition at line 49 of file class.ilLikeWikiContentSearch.php.

{
global $ilDB;
$and = " WHERE ( ";
$counter = 0;
foreach($this->query_parser->getQuotedWords() as $word)
{
if($counter++)
{
$and .= " OR";
}
$and .= $this->db->like("content", "clob", '%'.$word.'%');
$and .= " OR ";
$and .= $this->db->like("title", "text", '%'.$word.'%');
}
return $and.") ";
}

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