SilverStripe\FullTextSearch\Search\Criteria\SearchCriteria
Class SearchCriteria
Synopsis
class SearchCriteria
implements
SearchCriteriaInterface
{
- // constants
- const CONJUNCTION_AND = 'AND';
- const CONJUNCTION_OR = 'OR';
- // members
- protected array $clauses = ;
- protected array $conjunctions = ;
- protected SearchAdapterInterface|null $adapter = NULL;
- // methods
- public void __construct()
- public static SearchCriteria create()
- public null|SearchAdapterInterface getAdapter()
- public $this setAdapter()
- public void appendPreparedStatementTo()
- public $this addAnd()
- public $this addOr()
- protected SearchCriteriaInterface getCriterionForCondition()
- protected array getClauses()
- protected void addClause()
- protected array getConjunctions()
- protected string|null getConjunction()
- protected void addConjunction()
Hierarchy
Constants
Name | Value |
---|---|
CONJUNCTION_AND | 'AND' |
CONJUNCTION_OR | 'OR' |
Members
protected
- $adapter — SilverStripe\FullTextSearch\Search\Criteria\SearchAdapterInterface|null
- $clauses
—
array
A collection of SearchCriterion and SearchCriteria. - $conjunctions
—
array
The conjunctions used between Criteria (AND/OR).
Methods
protected
- addClause()
- addConjunction()
- getClauses()
- getConjunction()
- getConjunctions()
- getCriterionForCondition()
public
- __construct() — You can pass through a string value, Criteria object, or Criterion object for $target.
- addAnd()
- addOr()
- appendPreparedStatementTo()
- create() — Static create method provided so that you can perform method chaining.
- getAdapter()
- setAdapter()