blob: a39bab453ef0cdfa99864f252ac8709a81e59720 (
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
|
<?php
/**
* Check that the class name is valid
*
*/
class gtIsValidClass extends gtPreCondition {
public function check( $clo) {
if($clo->hasOption('c') ) {
$className = $clo->getOption('c');
if( in_array( $className, get_declared_classes() ) ) {
return true;
}
return false;
}
return true;
}
public function getMessage() {
return gtText::get('unknownClass');
}
}
?>
|