Back to index

php5  5.3.10
gtIsValidClass.php
Go to the documentation of this file.
00001 <?php
00002 
00007 class gtIsValidClass extends gtPreCondition {
00008 
00009   public function check( $clo) {
00010     if($clo->hasOption('c') ) {
00011       $className = $clo->getOption('c');
00012       if( in_array( $className, get_declared_classes() ) ) {
00013         return true;
00014       }
00015       return false;
00016     }
00017     return true;
00018   }
00019 
00020   public function getMessage() {
00021     return gtText::get('unknownClass');
00022   }
00023 }
00024 ?>