Back to index

php5  5.3.10
Public Member Functions
gtIsValidMethod Class Reference

Check that the method name is valid. More...

Inheritance diagram for gtIsValidMethod:
Inheritance graph
[legend]
Collaboration diagram for gtIsValidMethod:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 check ($clo)
 getMessage ()

Detailed Description

Check that the method name is valid.

Definition at line 7 of file gtIsValidMethod.php.


Member Function Documentation

Reimplemented from gtPreCondition.

Definition at line 9 of file gtIsValidMethod.php.

                              {
    if($clo->hasOption('m') ) {
      $className = $clo->getOption('c');
      $class = new ReflectionClass($className);
      $methods = $class->getMethods();
      foreach($methods as $method) {
        if($clo->getOption('m') == $method->getName()) {
          return true;
        }
      }
      return false;
    }
    return true;
  }

Reimplemented from gtPreCondition.

Definition at line 24 of file gtIsValidMethod.php.

                               {
    return gtText::get('unknownMethod');
  }

Here is the call graph for this function:


The documentation for this class was generated from the following file: