1<?php 2 3/** 4 * Check that either a method or a function is specified 5 * 6 */ 7class gtIsSpecifiedFunctionOrMethod extends gtPreCondition { 8 9 public function check( $clo) { 10 if($clo->hasOption('f') || $clo->hasOption('m')) { 11 12 return true; 13 } 14 return false; 15 } 16 17 public function getMessage() { 18 return gtText::get('functionOrMethodNotSpecified'); 19 } 20} 21?>