filterExtendScopes -> listFilterExtendScopes

extendFilterScopes -> extendListFilterScopes
Filter still belongs to the "List", this would help resolve conflicts if there were ever a FilterController that would carry rightful claim to "filterExtendScopes"
This commit is contained in:
Samuel Georges 2017-05-14 14:47:17 +10:00
parent fe3e44efeb
commit 57aa723c23

View File

@ -240,12 +240,12 @@ class ListController extends ControllerBehavior
$filterWidget->bindEvent('filter.update', function () use ($widget, $filterWidget) {
return $widget->onRefresh();
});
/*
* Filter Widget with extensibility
*/
$filterWidget->bindEvent('filter.extendScopes', function () use ($filterWidget) {
$this->controller->filterExtendScopes($filterWidget);
$this->controller->listFilterExtendScopes($filterWidget);
});
/*
@ -462,7 +462,7 @@ class ListController extends ControllerBehavior
* @param \Backend\Widgets\Filter $host The hosting filter widget
* @return void
*/
public function filterExtendScopes($host)
public function listFilterExtendScopes($host)
{
}
@ -565,7 +565,7 @@ class ListController extends ControllerBehavior
* @param callable $callback
* @return void
*/
public static function extendFilterScopes($callback)
public static function extendListFilterScopes($callback)
{
$calledClass = self::getCalledExtensionClass();
Event::listen('backend.filter.extendScopes', function ($widget) use ($calledClass, $callback) {