elFinder\elFinder::error PHP Method

error() public method

Normalize error messages
Author: Dmitry (dio) Levashov
public error ( ) : array
return array
    public function error()
    {
        $errors = array();
        foreach (func_get_args() as $msg) {
            if (is_array($msg)) {
                $errors = array_merge($errors, $msg);
            } else {
                $errors[] = $msg;
            }
        }
        return count($errors) ? $errors : array(self::ERROR_UNKNOWN);
    }