Public Member Functions | Protected Member Functions

ilAdvancedMDLikeSearch Class Reference

Inheritance diagram for ilAdvancedMDLikeSearch:
Collaboration diagram for ilAdvancedMDLikeSearch:

Public Member Functions

 __construct ($query_parser)
 Constructor.

Protected Member Functions

 __createWhereCondition ()
 Create where condition.

Detailed Description

Author:
Stefan Meyer <smeyer@databay.de>
Version:
$Id$

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


Constructor & Destructor Documentation

ilAdvancedMDLikeSearch::__construct ( query_parser  ) 

Constructor.

public

Parameters:
obj query 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: