DNADesign\Elemental\Controllers\ElementSiteTreeFilterSearch
Synopsis
class ElementSiteTreeFilterSearch
extends CMSSiteTreeFilter_Search
{
- // members
- private static boolean $search_for_term_in_content = true;
- private array $extraTermFilters = ;
- // methods
- protected DataList applyDefaultFilters()
- private DataList applyWithExtraTermFilters()
Hierarchy
Extends
- SilverStripe\CMS\Controllers\CMSSiteTreeFilter_Search
Uses
- SilverStripe\Core\Config\Configurable
Members
private
- $extraTermFilters — array
- $search_for_term_in_content — boolean
Methods
private
- applyWithExtraTermFilters() — Method is a copy of {@link CMSSiteTreeFilter::applyDefaultFilters} with one line added to the Term filter array to merge in a custom array of "extra term filters", since we cannot modify the list after the filters have been applied by the parent class.
protected
- applyDefaultFilters() — We can't use ORM filtering for PHP methods, so we'll perform our own PHP "search" and get a list of matching SiteTree record IDs, then add that to the original ORM query.