mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-16 22:46:20 +02:00
016cff2093
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@60209 467b73ca-7a2a-4603-9d3b-597d59a354a9
30 lines
474 B
PHP
30 lines
474 B
PHP
<?php
|
|
/**
|
|
* @todo documentation
|
|
*
|
|
* @package sapphire
|
|
* @subpackage search
|
|
*/
|
|
abstract class SearchFilter extends Object {
|
|
|
|
protected $name;
|
|
protected $value;
|
|
|
|
function __construct($name, $value = false) {
|
|
$this->name = $name;
|
|
$this->value = $value;
|
|
}
|
|
|
|
public function setValue($value) {
|
|
$this->value = $value;
|
|
}
|
|
|
|
/**
|
|
* Apply filter criteria to a SQL query.
|
|
*
|
|
* @param SQLQuery $query
|
|
*/
|
|
abstract public function apply(SQLQuery $query);
|
|
|
|
}
|
|
?>
|