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

  • StaticFiles
  • SystemTasks
  • UserNotifications
  • ValidationErrors
  • Overview
  • Namespace
  • Class
  • Deprecated

Class ValidationErrors

This model keeps the request validation state. A request handler module can push a validation error it had found here.

ArrayObject implements IteratorAggregate, Traversable, ArrayAccess, Serializable, Countable
Extended by Nethgui\Model\ValidationErrors implements Nethgui\Controller\ValidationReportInterface
Namespace: Nethgui\Model
Author: Davide Principi davide.principi@nethesis.it
Since: 1.6
Located at Model/ValidationErrors.php
Methods summary
public Nethgui\Controller\ValidationReportInterface
# addValidationErrorMessage( Nethgui\Module\ModuleInterface $module, string $parameterName, string $message, array $args = array() )

Parameters

$module
$parameterName
$message
The error message template
$args
Optional - Arguments to the error message

Returns

Nethgui\Controller\ValidationReportInterface

Api

Implementation of

Nethgui\Controller\ValidationReportInterface::addValidationErrorMessage()
public Nethgui\Controller\ValidationReportInterface
# addValidationError( Nethgui\Module\ModuleInterface $module, string $parameterName, Nethgui\System\ValidatorInterface $validator )

Parameters

$module
$parameterName
$validator

Returns

Nethgui\Controller\ValidationReportInterface

Api

Implementation of

Nethgui\Controller\ValidationReportInterface::addValidationError()
public boolean
# hasValidationErrors( )

Check if a validation error has been added.

Check if a validation error has been added.

Returns

boolean

Api

Implementation of

Nethgui\Controller\ValidationReportInterface::hasValidationErrors()
Methods inherited from ArrayObject
__construct(), append(), asort(), count(), exchangeArray(), getArrayCopy(), getFlags(), getIterator(), getIteratorClass(), ksort(), natcasesort(), natsort(), offsetExists(), offsetGet(), offsetSet(), offsetUnset(), serialize(), setFlags(), setIteratorClass(), uasort(), uksort(), unserialize()
Constants inherited from ArrayObject
ARRAY_AS_PROPS, STD_PROP_LIST
Nethgui Framework API documentation generated by ApiGen