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

Class Concrete5_Helper_Validation_Error

Direct known subclasses


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

Methods summary

# 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.

# output( )

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

# outputJSON( )

Outputs the the error as a JSON object.

Properties summary

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