Helper class for generating a function.
There are two ways of using this class. The first one is to extend it and to overwrite the methods getFunctionName, and getCode. This is recommendable if the function you want to generate is rather complex. You would call the constructor with only one argument:
1 new RSDEngineFunctionChildClass($config);
The second way to use this class makes only sense if $config is not needed for generating your class. Call the constructor like this:
1 new RSDEngineClass(false, "myFunction", $functionBodyCode);
and use the methods getCode/toRSDFile.
Located in /code/framework/RSDEngine/RSDEngineFunction.php (line 48)
The body of the function to generate. Gets optionally set inside the constructor method.
An associative array containing all configuration options. Gets set inside the constructor method.
The name of the function to generate. Gets optionally set inside the constructor method.
Constructor that does the initialization.
Returns the code for this function.
Returns the function name.
Documentation generated on Mon, 8 Dec 2003 13:12:48 +0100 by phpDocumentor 1.2.3