ILIAS  Release_4_1_x_branch Revision 61804
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilAdvancedMDLikeSearch Class Reference
+ Inheritance diagram for ilAdvancedMDLikeSearch:
+ Collaboration diagram for ilAdvancedMDLikeSearch:

Public Member Functions

 __construct ($query_parser)
 Constructor.
- Public Member Functions inherited from ilAdvancedMDSearch
 setDefinition ($a_def)
 set Definition
 getDefinition ()
 get definition
 performSearch ()
 perform search
 setTimeRange ($start, $end)
 set time range
- 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)

Protected Member Functions

 __createWhereCondition ()
 Create where condition.

Additional Inherited Members

- Data Fields inherited from ilAbstractSearch
 $db = null
 $query_parser = null
 $search_result = null
 $object_types
- Protected Attributes inherited from ilAdvancedMDSearch
 $definition

Detailed Description

Author
Stefan Meyer meyer.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
Version
$Id$

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

Constructor & Destructor Documentation

ilAdvancedMDLikeSearch::__construct (   $query_parser)

Constructor.

public

Parameters
objquery parser

Reimplemented from ilAdvancedMDSearch.

Definition at line 46 of file class.ilAdvancedMDLikeSearch.php.

References ilAbstractSearch\$query_parser.

Member Function Documentation

ilAdvancedMDLikeSearch::__createWhereCondition ( )
protected

Create where condition.

private

Parameters

Definition at line 58 of file class.ilAdvancedMDLikeSearch.php.

{
$and = " WHERE ( ";
$counter = 0;
foreach($this->query_parser->getQuotedWords() as $word)
{
if($counter++)
{
$and .= " OR ";
}
$and .= ("value LIKE ('%".$word."%')");
}
return $and.") ";
}

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