public function getErrors($format = true)
    {
        if (!$format) {
            return $this->errors;
        }

        $formatted = array();

        foreach ($this->errors as $error) {
            $formatted[] = $this->getFormattedError($error);
        }

        return $formatted;
    }
public function getErrors($format = true)
    {
        if (!$format) {
            return $this->errors;
        }

        $formatted = array();

        foreach ($this->errors as $error) {
            $formatted[] = $this->getFormattedError($error);
        }

        return $formatted;
    }
public function getErrors ( $ format = true ) { if ( ! $ format ) { return $ this -> errors ; } $ formatted = array ( ) ; foreach ( $ this -> errors as $ error ) { $ formatted [ ] = $ this -> getFormattedError ( $ error ) ; } return $ formatted ; }
Returns an array of collected PHP errors
@param boolean $format
@return array
Returns an array of collected PHP errors