protected function setErrorMessage(
        $error_messages, 
        $code, 
        $errorAttributes = '', 
        $errorFileName = '', 
        $errorFileSize = '', 
        $errorFileMime = ''
    ) {
        $arg_list = func_get_args();
        $numargs = func_num_args();
        for ($i = 0; $i < $numargs; $i++) {
            if (is_array($arg_list) && array_key_exists($i, $arg_list) && !is_scalar($arg_list[$i])) {
                return false;
            } elseif ($arg_list === false) {
                return false;
            }
        }
        unset($arg_list, $i, $numargs);

        $this->error_messages[] = $error_messages;
        $this->error_codes[] = array(
            'code' => $code,
            'errorAttributes' => $errorAttributes,
            'errorFileName' => $errorFileName,
            'errorFileSize' => $errorFileSize,
            'errorFileMime' => $errorFileMime,
        );
    }
protected function setErrorMessage(
        $error_messages, 
        $code, 
        $errorAttributes = '', 
        $errorFileName = '', 
        $errorFileSize = '', 
        $errorFileMime = ''
    ) {
        $arg_list = func_get_args();
        $numargs = func_num_args();
        for ($i = 0; $i < $numargs; $i++) {
            if (is_array($arg_list) && array_key_exists($i, $arg_list) && !is_scalar($arg_list[$i])) {
                return false;
            } elseif ($arg_list === false) {
                return false;
            }
        }
        unset($arg_list, $i, $numargs);

        $this->error_messages[] = $error_messages;
        $this->error_codes[] = array(
            'code' => $code,
            'errorAttributes' => $errorAttributes,
            'errorFileName' => $errorFileName,
            'errorFileSize' => $errorFileSize,
            'errorFileMime' => $errorFileMime,
        );
    }
protected function setErrorMessage ( $ error_messages , $ code , $ errorAttributes = '' , $ errorFileName = '' , $ errorFileSize = '' , $ errorFileMime = '' ) { $ arg_list = func_get_args ( ) ; $ numargs = func_num_args ( ) ; for ( $ i = 0 ; $ i < $ numargs ; $ i ++ ) { if ( is_array ( $ arg_list ) && array_key_exists ( $ i , $ arg_list ) && ! is_scalar ( $ arg_list [ $ i ] ) ) { return false ; } elseif ( $ arg_list === false ) { return false ; } } unset ( $ arg_list , $ i , $ numargs ) ; $ this -> error_messages [ ] = $ error_messages ; $ this -> error_codes [ ] = array ( 'code' => $ code , 'errorAttributes' => $ errorAttributes , 'errorFileName' => $ errorFileName , 'errorFileSize' => $ errorFileSize , 'errorFileMime' => $ errorFileMime , ) ; }
Set the error message into error_messages and error_codes properties.

@since 2.0.1
@param string $error_messages The error message.
@param string $code The error code, start with RDU_ and follow with number or short error message without space.
@param string $errorAttributes Error attributes. For example: 9MB > 2MB in case that limit file size to 2MB but uploaded 9MB, or showing file name that have problem.
@param string $errorFileName The file name with extension.
@param string $errorFileSize The file size in bytes.
@param string $errorFileMime The file mime type.
Set the error message into error_messages and error_codes properties .