Back to index

php5  5.3.10
Public Member Functions
gtIsValidFunction Class Reference

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

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

List of all members.

Public Member Functions

 check ($clo)
 getMessage ()

Detailed Description

Check that the function name is valid.

Definition at line 7 of file gtIsValidFunction.php.


Member Function Documentation

Reimplemented from gtPreCondition.

Definition at line 9 of file gtIsValidFunction.php.

                               {
    if($clo->hasOption('f') ) {
      $function = $clo->getOption('f');
      $functions = get_defined_functions();
      if( in_array( $function, $functions['internal'] ) ) {
        return true;
      }
      return false;
    }
    return true;
  }

Reimplemented from gtPreCondition.

Definition at line 21 of file gtIsValidFunction.php.

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

Here is the call graph for this function:


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