Back to index

php5  5.3.10
gtPreConditionList.php
Go to the documentation of this file.
00001 <?php
00002 
00007 class gtPreConditionList {
00008   
00009   private $preConditions = array(
00010       'gtIsSpecifiedTestType',
00011       'gtIsSpecifiedFunctionOrMethod',  
00012       'gtIfClassHasMethod',
00013       'gtIsValidClass',
00014       'gtIsValidFunction',
00015       'gtIsValidMethod',
00016   );
00017 
00018 
00023   public function check($clo) {
00024     foreach ($this->preConditions as $preCon) {
00025       $checkThis = new $preCon;
00026       if(!$checkThis->check($clo)) {
00027         echo $checkThis->getMessage();
00028         die(gtText::get('help'));
00029       }
00030     }
00031   }
00032 }
00033 ?>