blob: a5be4f1a0ce8a5688cfd0f9108c11b85b0faccdd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
<?php
/**
* Check that the function name is valid
*
*/
class gtIsValidFunction extends gtPreCondition {
public function check( $clo) {
if($clo->hasOption('f') ) {
$function = $clo->getOption('f');
$functions = get_defined_functions();
if( in_array( $function, $functions['internal'] ) ) {
return true;
}
return false;
}
return true;
}
public function getMessage() {
return gtText::get('unknownFunction');
}
}
?>
|