blob: a16cf81e4da1d487c7708f048644603c00f3ea7e (
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
/**
* If use has requested a class check that method is specified
*
*/
class gtIfClassHasMethod extends gtPreCondition {
public function check( $clo) {
if($clo->hasOption('c')) {
if(!$clo->hasOption('m')) {
return false;
}
return true;
}
return true;
}
public function getMessage() {
return gtText::get('methodNotSpecified');
}
}
?>
|