SilverCart\ORM\Search\SearchContext
Provides the ability to search between two dates.
- Author: Sebastian Diel <sdiel@pixeltricks.de>
- Copyright: 2017 pixeltricks GmbH
- License: see license file in modules root directory
Synopsis
class SearchContext
extends SearchContext
{
- // methods
- public FieldList getSearchFields()
- public DataList getQuery()
- public ArrayList getSummary()
Hierarchy
Extends
- SilverStripe\ORM\Search\SearchContext
Methods
public
- getQuery() — Alter the existing SQL query object by adding some filters for the search so that the query finds objects between two dates min and max
- getSearchFields() — Replace the default form fields for the 'Created' search field with a single text field which we can use to apply jquery date range widget to.
- getSummary() — Workaroung to add proper summary support for MultiDropdownFields.