|
<?php
|
|
/**
|
|
* Matches textual content with a LIKE '%keyword%' construct.
|
|
*
|
|
* @package sapphire
|
|
* @subpackage search
|
|
*/
|
|
class PartialMatchFilter extends SearchFilter {
|
|
|
|
public function apply(SQLQuery $query) {
|
|
return $query->where("{$this->name} LIKE '%{$this->value}%'");
|
|
}
|
|
|
|
}
|
|
?>
|