TLControlStruct Class Reference

Additional control structure tools. More...

List of all members.

Static Public Member Functions

static isMain ($from)
 Check if the calling script is included or if it is the main script being run. Comes in handy when you need to determine whether to run tests in a library or not.


Detailed Description

Additional control structure tools.

Definition at line 261 of file tlib.php.


Member Function Documentation

static TLControlStruct::isMain ( from  )  [static]

Check if the calling script is included or if it is the main script being run. Comes in handy when you need to determine whether to run tests in a library or not.

Parameters:
$from (string) Pass the __FILE__ constant to this variable when you call this method.
Returns:
True if the caller is the main script. False if it's just an included file.

Definition at line 268 of file tlib.php.


The documentation for this class was generated from the following file:
Generated on Sun Sep 24 22:05:25 2006 for TLib-PHP by  doxygen 1.4.7