Source of file SearchCriteriaInterface.php
Size: 1,014 Bytes - Last Modified: 2021-12-23T10:31:32+00:00
/var/www/docs.ssmods.com/process/src/src/Search/Criteria/SearchCriteriaInterface.php
12345678910111213141516171819202122232425262728293031323334353637 | <?php namespace SilverStripe\FullTextSearch\Search\Criteria; use SilverStripe\FullTextSearch\Search\Adapters\SearchAdapterInterface; /** * Interface SearchCriteriaInterface * * SearchCriteria and SearchCriterion objects must implement this interface. */ interface SearchCriteriaInterface { /** * The method used in all SearchCriterion to generate and append their filter query statements. * * This is also used in SearchCriteria to loop through it's collected SearchCriterion and append the above. This * allows us to have SearchCriteria and SearchCriterion in the same collections (allowing us to have complex nested * filtering). * * @param $ps * @return void */ public function appendPreparedStatementTo(&$ps); /** * @return SearchAdapterInterface */ public function getAdapter(); /** * @param SearchAdapterInterface $adapter * @return $this */ public function setAdapter(SearchAdapterInterface $adapter); } |