Class CompositeController
A composition of modules, where only one member receives the request handling calls.
A Controller is composed of modules representing actions. It determines the "current" action to be executed by looking at the request arguments.
A a top level Controller renders its parts embedded in a FORM container.
- Nethgui\Module\AbstractModule implements Nethgui\Module\ModuleInterface, Nethgui\View\ViewableInterface, Nethgui\Log\LogConsumerInterface, Nethgui\Utility\PhpConsumerInterface, Nethgui\Authorization\AuthorizationAttributesProviderInterface, Nethgui\System\PlatformConsumerInterface, Nethgui\Authorization\PolicyEnforcementPointInterface
- Nethgui\Module\Composite implements Nethgui\Module\ModuleCompositeInterface, Nethgui\Component\DependencyInjectorAggregate
- Nethgui\Controller\CompositeController implements Nethgui\Controller\RequestHandlerInterface
Direct known subclasses
Nethgui\Controller\CollectionController, Nethgui\Controller\TableController, Nethgui\Controller\TabsController, Nethgui\Module\Help
Namespace: Nethgui\Controller
Author: Davide Principi davide.principi@nethesis.it
Since: 1.0
See: Composite
Api
Located at Controller/CompositeController.php
Author: Davide Principi davide.principi@nethesis.it
Since: 1.0
See: Composite
Api
Located at Controller/CompositeController.php
protected
|
|
public
|
#
bind(
Overrides Composite bind() method, defining what is the current action and forwarding the call to it. |
protected
string|boolean
|
|
public
|
|
protected
|
|
public
|
#
validate(
Implements validate() method, forwarding the call to current action only. |
public
|
|
public
boolean
|
|
public
|
#
prepareView(
Display all actions in a disabled state if current action is not defined, otherwise display the current action only. |
public
string
|
|
public
|
|
protected
boolean
|
#
needsAutoFormWrap(
Check if the given module is a leaf and can handle requests. |
ACTION_INSTANTIATE
|
ACTION_MUTATE,
ACTION_QUERY
|
protected
|
$currentAction
The action where to forward method calls |
$dependencyInjector
|