1<?php 2 3/** 4 * If use has requested a class check that method is specified 5 * 6 */ 7class gtIfClassHasMethod extends gtPreCondition { 8 9 public function check( $clo) { 10 if($clo->hasOption('c')) { 11 if(!$clo->hasOption('m')) { 12 return false; 13 } 14 return true; 15 } 16 return true; 17 } 18 19 public function getMessage() { 20 return gtText::get('methodNotSpecified'); 21 } 22 23} 24?>