mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 09:26:35 +02: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
1 changed files with 9 additions and 0 deletions
|
@ -176,6 +176,14 @@ class EvalMath {
|
||||||
return $output;
|
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 ====================\\
|
//===================== HERE BE INTERNAL METHODS ====================\\
|
||||||
|
|
||||||
// Convert infix to postfix notation
|
// Convert infix to postfix notation
|
||||||
|
@ -428,6 +436,7 @@ class EvalMath {
|
||||||
if (!$this->suppress_errors) trigger_error($msg, E_USER_WARNING);
|
if (!$this->suppress_errors) trigger_error($msg, E_USER_WARNING);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// for internal use
|
// for internal use
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue