mirror of
https://github.com/silverstripe/silverstripe-fulltextsearch
synced 2024-10-22 12:05:29 +00:00
1728a62af5
Thanks to Marco Hermo and Brett Tasker for helping with this * Bump framework/cms to ^4.0@dev * WIP Silverstripe 4 compatibility fixes * more replacements and patches to migrate this module to 4.0 * Update composer.json * remove php <5.5 from travis.yml * WIP more SS4 compatibility fixes * WIP fix solr path to use DIR, avoid hardcoded module name * WIP respect current include path * WIP Namespacing and use on SearchIndex class * Namespacing for tests * WIP add namespaces to all classes * Second push of Test changes + namespacing * WIP split Solr files with multiple classes into single file / single class. Adjust namespaces * Fix PHP errors in test * break out search components with multiple classes into individual files and change namespaces * Update namespacing for Search indexes and variants in tests * Batch fixes for tests #2 * Update _config.php to use namespace * Use root namespace in referencing Apache_Solr_Document * Migrate task names so that the name is not fully qualified
34 lines
664 B
PHP
34 lines
664 B
PHP
<?php
|
|
|
|
namespace SilverStripe\FullTextSearch\Search\Queries;
|
|
|
|
/**
|
|
* Create one of these and pass as one of the values in filter or exclude to filter or exclude by a (possibly
|
|
* open ended) range
|
|
*/
|
|
class SearchQuery_Range
|
|
{
|
|
public $start = null;
|
|
public $end = null;
|
|
|
|
public function __construct($start = null, $end = null)
|
|
{
|
|
$this->start = $start;
|
|
$this->end = $end;
|
|
}
|
|
|
|
public function start($start)
|
|
{
|
|
$this->start = $start;
|
|
}
|
|
|
|
public function end($end)
|
|
{
|
|
$this->end = $end;
|
|
}
|
|
|
|
public function isfiltered()
|
|
{
|
|
return $this->start !== null || $this->end !== null;
|
|
}
|
|
} |