mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
NOBUG move function definition is_valid_var_or_func_name above 'HERE
BE INTERNAL METHODS' line.
This commit is contained in:
parent
06329db453
commit
6efaec1e15
@ -176,6 +176,14 @@ class EvalMath {
|
||||
return $output;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $name
|
||||
* @return boolean Is this a valid var or function name?
|
||||
*/
|
||||
public static function is_valid_var_or_func_name($name){
|
||||
return preg_match('/'.self::$namepat.'$/iA', $name);
|
||||
}
|
||||
|
||||
//===================== HERE BE INTERNAL METHODS ====================\\
|
||||
|
||||
// Convert infix to postfix notation
|
||||
@ -428,6 +436,7 @@ class EvalMath {
|
||||
if (!$this->suppress_errors) trigger_error($msg, E_USER_WARNING);
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// for internal use
|
||||
|
Loading…
x
Reference in New Issue
Block a user