Back to index

php5  5.3.10
Public Member Functions
gtIsValidClass Class Reference

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

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

List of all members.

Public Member Functions

 check ($clo)
 getMessage ()

Detailed Description

Check that the class name is valid.

Definition at line 7 of file gtIsValidClass.php.


Member Function Documentation

Reimplemented from gtPreCondition.

Definition at line 9 of file gtIsValidClass.php.

                               {
    if($clo->hasOption('c') ) {
      $className = $clo->getOption('c');
      if( in_array( $className, get_declared_classes() ) ) {
        return true;
      }
      return false;
    }
    return true;
  }

Reimplemented from gtPreCondition.

Definition at line 20 of file gtIsValidClass.php.

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

Here is the call graph for this function:


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