blob: 9d7f2a5b75455e383f26bfbf781bd4af61eecbda (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<?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();
return in_array( $function, $functions['internal'] );
}
return true;
}
public function getMessage() {
return gtText::get('unknownFunction');
}
}
?>
|