WidgetSets\Controllers\WidgetSetWidgetController
WidgetSetWidget Controller class.
- Author: Sebastian Diel <sdiel@pixeltricks.de>
- Copyright: 2017 pixeltricks GmbH
- License: see license file in modules root directory
Synopsis
class WidgetSetWidgetController
extends WidgetController
{
- // members
- public static array $classInstanceCounter = ;
- protected integer $classInstanceIdx = 0;
- public static array $registeredFilterPlugins = ;
- // methods
- public void __construct()
- public static void registerFilterPlugin()
- public string Link()
Hierarchy
Extends
- SilverStripe\Widgets\Model\WidgetController
Members
protected
- $classInstanceIdx
—
int
Contains the unique ID of the current class instance
public
- $classInstanceCounter
—
array
Instances of $this will have a unique ID - $registeredFilterPlugins
—
array
Contains a list of all registered filter plugins.
Methods
public
- __construct() — We register the search form on the page controller here.
- Link() — Overwrites the default widget link to add a proper handling for widget set URLs.
- registerFilterPlugin() — Registers an object as a filter plugin. Before getting the result set the method 'filter' is called on the plugin. It has to return an array with filters to deploy on the query.