\FilterOption
Filter that can be added to an object
- Author: i-lateral (http://www.i-lateral.com)
Synopsis
class FilterOption
extends DataObject
{
- // members
- private static array $db = ;
- private static array $has_one = ;
- private static array $searchable_fields = ;
- private static array $summary_fields = ;
- private static string $default_sort = "\"Sort\" DESC";
- // methods
- public string Link()
- public string getParentFilter()
- public void onBeforeWrite()
- public void canView()
- public void canCreate()
- public void canEdit()
- public void canDelete()
Hierarchy
Extends
- DataObject
Members
private
- $db
- $default_sort
- $has_one
- $searchable_fields
- $summary_fields
Methods
public
- Link() — Get a filter link for the current option, assuming the current controller has the filterby action available
- canCreate()
- canDelete()
- canEdit()
- canView()
- getParentFilter() — return the title of the parent filter
- onBeforeWrite()