Source for file WebFormErrorsHandler.php
Documentation is available at WebFormErrorsHandler.php
* The standard web form error handlers
* @copyright Copyright (c) 2006 Mirchev Ideas Ltd. All rights reserved.
* Collects and displays errors
* @copyright Copyright (c) 2006 Mirchev Ideas Ltd. All rights reserved.
* @param string $errorMessage
public function addError($fieldName, $errorMessage)
if (isset
($this->_errors[$fieldName]))
$this->_errors[$fieldName] .=
'. ' .
$errorMessage;
$this->_errors[$fieldName] =
$errorMessage;
* Assign the errors to the template
* @param miTemplateParser $t
* Returns true if there are any errors in the object
* @return bool true if there are errors, false otherwise
* Message based errors handler
* @copyright Copyright (c) 2006 Mirchev Ideas Ltd. All rights reserved.
* Assign the errors to the template
* @param miTemplateParser $t
foreach ($this->_errors as $fieldName =>
$errors) {
$errorsArray[] =
$fieldName .
' : ' .
$errors;
Documentation generated on Thu, 08 May 2008 16:58:01 +0300 by phpDocumentor 1.4.1