mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-08-30 06:26:11 +02:00
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@60208 467b73ca-7a2a-4603-9d3b-597d59a354a9
15 lines
256 B
PHP
15 lines
256 B
PHP
<?php
|
|
/**
|
|
* Matches textual content with a LIKE '%keyword%' construct.
|
|
*
|
|
* @package sapphire
|
|
* @subpackage search
|
|
*/
|
|
class PartialMatchFilter extends SearchFilter {
|
|
|
|
public function apply($value) {
|
|
return "{$this->name} LIKE '%$value%'";
|
|
}
|
|
|
|
}
|
|
?>
|