This is the API documentation for concrete5 version 5.6 and earlier. View Current API Documentation

Class Concrete5_Helper_Validation_Error

Direct known subclasses

ValidationErrorHelper

Package: Helpers\Validation
Copyright: Copyright (c) 2003-2008 Concrete5. (http://www.concrete5.org)
License: MIT License
Author: Andrew Embler andrew@concrete5.org
Located at core/helpers/validation/error.php

Methods summary

public
# add( Exception $e )

Adds an error object or exception to the internal error array

public array
# getList( )

Returns a list of errors in the error helper

public boolean
# has( )

Returns whether or not this error helper has more than one error registered within it.

public
# output( )

Outputs the HTML of an error list, with the correct style attributes/classes. This is a convenience method.

public
# outputJSON( )

Outputs the the error as a JSON object.

Properties summary

protected array $error
# array()
public boolean $helperAlwaysCreateNewInstance
# true