Overview

Namespaces

  • Nethgui
    • Adapter
    • Authorization
    • Component
    • Controller
      • Collection
      • Table
    • Exception
    • Log
    • Model
    • Module
      • Help
      • Notification
    • Renderer
    • Serializer
    • System
    • Test
      • Tool
      • Unit
        • Nethgui
          • Adapter
            • ParameterSet
          • Authorization
          • Log
          • Module
            • Notification
          • Renderer
          • Serializer
          • System
          • Utility
          • View
        • Test
          • Tool
    • Utility
    • View
    • Widget
      • Xhtml
  • None
  • Test
    • Tool

Classes

  • AbstractController
  • CollectionController
  • CompositeController
  • ListComposite
  • NullRequest
  • RequestTest
  • TableController
  • TabsController

Interfaces

  • RequestHandlerInterface
  • RequestInterface
  • ValidationReportInterface
  • Overview
  • Namespace
  • Class
  • Deprecated

Interface RequestHandlerInterface

Request handlers executes Module logics.

A request handler is delegated to - receive input parameters (parameter binding), - validate, - perform process()-ing.

Direct known implementers

Nethgui\Controller\AbstractController, Nethgui\Controller\CompositeController, Nethgui\Controller\ListComposite

Indirect known implementers

Nethgui\Controller\Collection\AbstractAction, Nethgui\Controller\CollectionController, Nethgui\Controller\TableController, Nethgui\Controller\TabsController, Nethgui\Module\Help, Nethgui\Module\Help\Common, Nethgui\Module\Help\Read, Nethgui\Module\Help\Show, Nethgui\Module\Help\Template, Nethgui\Module\Language, Nethgui\Module\Login, Nethgui\Module\Logout, Nethgui\Controller\Table\AbstractAction, Nethgui\Module\Main, Nethgui\Module\Menu, Nethgui\Module\Resource, Nethgui\Module\Tracker, Nethgui\Test\Unit\Nethgui\Module\ConcreteStandardModule1, Nethgui\Controller\Table\Help, Nethgui\Controller\Table\Modify, Nethgui\Controller\Table\PluggableAction, Nethgui\Controller\Table\PluginCollector, Nethgui\Controller\Table\Read, Nethgui\Controller\Table\RowAbstractAction, Nethgui\Controller\Table\RowPluginAction
Namespace: Nethgui\Controller
Author: Davide Principi davide.principi@nethesis.it
Since: 1.0
See: ModuleInterface
See: http://en.wikipedia.org/wiki/Template_method_pattern
Api
Located at Controller/RequestHandlerInterface.php
Methods summary
public
# bind( Nethgui\Controller\RequestInterface $request )

Put the request into the object internal state

Parameters

$request

Api

public
# validate( Nethgui\Controller\ValidationReportInterface $report )

Validate object state

Validate object state

Errors must be sent to $report.

Api

public
# process( )

Behaviour implementation

Behaviour implementation

Executed only if no validation errors has occurred.

Api

public mixed
# nextPath( )

Get the path to the next module. Relative paths resolving is deferred to implementors.

Get the path to the next module. Relative paths resolving is deferred to implementors.

Executed after process(), the user agent is directed to the designated module.

If boolean FALSE is returned then no action takes place.

Returns

mixed
boolean FALSE, string path (absolute), array request

Api

Constants summary
string ACTION_MUTATE

Authorization required to send a mutation request

Authorization required to send a mutation request

# 'MUTATE'
string ACTION_QUERY

Authorization required to send a query request

Authorization required to send a query request

# 'QUERY'
Nethgui Framework API documentation generated by ApiGen