public function addError($errorMessage)
    {
        if (is_array($errorMessage)) {
            if (count($errorMessage)) {
                foreach ($errorMessage as $message) {
                    $this->errors[] = $message;
                }
            }
        } else {
            $this->errors[] = $errorMessage;
        }
    }
public function addError($errorMessage)
    {
        if (is_array($errorMessage)) {
            if (count($errorMessage)) {
                foreach ($errorMessage as $message) {
                    $this->errors[] = $message;
                }
            }
        } else {
            $this->errors[] = $errorMessage;
        }
    }
public function addError ( $ errorMessage ) { if ( is_array ( $ errorMessage ) ) { if ( count ( $ errorMessage ) ) { foreach ( $ errorMessage as $ message ) { $ this -> errors [ ] = $ message ; } } } else { $ this -> errors [ ] = $ errorMessage ; } }
adds an error to the error array
@param string or array of strings $errorMessage
@author Christian Bülter <buelter@kennziffer.com>
@since 26.11.13
adds an error to the error array