\Filterable
Core class for working with the filterable module.
Filterable adds a many_many relationship to the dataobject required
and then adds a belongs_many_many back to the FilterOption object.
Doing this will create a relationship on your DataObject called
"Filters"
- Author: i-lateral (http://www.i-lateral.com)
Synopsis
class Filterable
extends SS_Object
implements
PermissionProvider
{
- // members
- private static array $filtered_classes = ;
- // methods
- public static void getFilteredClasses()
- public static void add()
- public static void remove()
- public void providePermissions()
Hierarchy
Extends
- SS_Object
Implements
- PermissionProvider
Members
private
- $filtered_classes
—
array
List of class names that have beern made filterable. This can be usefull if you need to find out a list of what objects are available for filtering.
Methods
public
- add() — Adds filterable to a {@link DataObject}.
- getFilteredClasses()
- providePermissions() — Add permissions to allow editing and deleting of filters
- remove() — Removes filtering from a {@link DataObject}. Does not remove existing relations but does remove the extension.