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

  • AbstractAction
  • Help
  • Modify
  • PluggableAction
  • PluginCollector
  • Read
  • RowAbstractAction
  • RowPluginAction
  • Overview
  • Namespace
  • Class
  • Deprecated

Class Modify

Processes the table modification actions: create, update, delete

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
Extended by Nethgui\Controller\AbstractController implements Nethgui\Controller\RequestHandlerInterface
Extended by Nethgui\Controller\Table\AbstractAction implements Nethgui\Adapter\AdapterAggregateInterface
Extended by Nethgui\Controller\Table\RowAbstractAction
Extended by Nethgui\Controller\Table\Modify
Namespace: Nethgui\Controller\Table
Author: Davide Principi davide.principi@nethesis.it
Since: 1.0
See: Nethgui\Controller\Table\Read
Api
Located at Controller/Table/Modify.php
Methods summary
public
# __construct( string $identifier, array $parameterSchema = NULL, mixed $viewTemplate = NULL )

Create a Modify instance that realizes one of the allowed behaviours:

Create a Modify instance that realizes one of the allowed behaviours:

  • create
  • delete
  • update

Parameters

$identifier
One of 'create', 'delete', 'update'
$parameterSchema
  • DEPRECATED
$viewTemplate
  • DEPRECATED

Throws

InvalidArgumentException

Overrides

Nethgui\Controller\AbstractController::__construct()
public
# bind( Nethgui\Controller\RequestInterface $request )

Establish what is the key value, then invoke setKeyValue() on the RecordAdapter BEFORE parent::bind()

Establish what is the key value, then invoke setKeyValue() on the RecordAdapter BEFORE parent::bind()

Parameters

$request

Overrides

Nethgui\Controller\Table\RowAbstractAction::bind()
protected
# ensureKeyExists( $keyValue )
protected string
# calculateKeyFromRequest( Nethgui\Controller\RequestInterface $request )

Calculate the key value for a new record from the given $request object.

Calculate the key value for a new record from the given $request object.

Override this function whenever the key value requires some kind of processing to be calculated.

Parameters

$request

Returns

string

Api

public
# process( )

Save parameters on mutation

Save parameters on mutation

Overrides

Nethgui\Controller\AbstractController::process()
protected
# processDelete( $key )
protected
# processCreate( $key )
protected
# processUpdate( $key )
public
# prepareView( Nethgui\View\ViewInterface $view )

Add default Cancel and FormAction URLs

Add default Cancel and FormAction URLs

Parameters

$view

Overrides

Nethgui\Controller\Table\AbstractAction::prepareView()
public Nethgui\Controller\Table\Modify
# setCreateDefaults( array $defaultValues )

Set the default parameter values in "create" action

Set the default parameter values in "create" action

Call before bind()

Parameters

$defaultValues

Returns

Nethgui\Controller\Table\Modify
Methods inherited from Nethgui\Controller\Table\RowAbstractAction
getKey(), getSchema(), saveParameters(), setAdapter(), setDefaultValue(), setSchema()
Methods inherited from Nethgui\Controller\Table\AbstractAction
getAdapter(), hasAdapter(), nextPath()
Methods inherited from Nethgui\Controller\AbstractController
createValidator(), declareParameter(), getRequest(), getValidator(), onParametersSaved(), validate()
Methods inherited from Nethgui\Module\AbstractModule
asAuthorizationString(), getAttributesProvider(), getAuthorizationAttribute(), getIdentifier(), getLog(), getParent(), getPhpWrapper(), getPlatform(), getPolicyDecisionPoint(), getViewTemplate(), hasPlatform(), initialize(), initializeAttributes(), isInitialized(), setLog(), setParent(), setPhpWrapper(), setPlatform(), setPolicyDecisionPoint(), setViewTemplate()
Constants inherited from Nethgui\Controller\Table\RowAbstractAction
FIELD, KEY
Constants inherited from Nethgui\Controller\RequestHandlerInterface
ACTION_MUTATE, ACTION_QUERY
Constants inherited from Nethgui\Module\ModuleInterface
ACTION_INSTANTIATE
Properties inherited from Nethgui\Controller\AbstractController
$parameters
Nethgui Framework API documentation generated by ApiGen