Inheritance diagram for ilAdvancedMDLikeSearch:
Collaboration diagram for ilAdvancedMDLikeSearch:Public Member Functions | |
| __construct ($query_parser) | |
| Constructor. | |
Protected Member Functions | |
| __createWhereCondition () | |
| Create where condition. | |
Definition at line 35 of file class.ilAdvancedMDLikeSearch.php.
| ilAdvancedMDLikeSearch::__construct | ( | $ | query_parser | ) |
Constructor.
public
| obj | query parser |
Reimplemented from ilAdvancedMDSearch.
Definition at line 46 of file class.ilAdvancedMDLikeSearch.php.
References ilAbstractSearch::$query_parser.
| ilAdvancedMDLikeSearch::__createWhereCondition | ( | ) | [protected] |
Create where condition.
private
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.") ";
}
1.7.1