Helper class for generating a class.
There are two ways of using this class. The first one is to extend it and to overwrite the methods getClassName, getInstanceName and getCode. This is recommendable if the class you want to generate is rather complex. You would call the constructor with only one argument:
1 new RSDEngineClassChildClass($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, "MyClass", "myClass", $classCode);
and use the methods getCode/toRSDFile.
Located in /code/framework/RSDEngine/RSDEngineClass.php (line 48)
Class | Description |
---|---|
RSDEngineDBApplicationBaseClass | Generates the application base class (the main class) for database backended applications. |
RSDEngineDBApplicationClass | Generates the Application class (the main class) for database backended applications. |
RSDEngineErrorManagerClass | Generates the Application class (the main class) for database backended applications. |
RSDEngineSmartyBaseClass | Generates a class extending the class Smarty. |
RSDEngineSmartyClass | Generates a class extending the class Smarty. |
The name of the class to generate. Gets optionally set inside the constructor method.
The code of the class to generate. Gets optionally set inside the constructor method.
An associative array containing all configuration options. Gets set inside the constructor method.
The instance name of the class to generate. Gets optionally set inside the constructor method.
Whether to overwrite an existing class file.
Whether to prevent writing this file.
Constructor that does the initialization.
Returns the class name.
Returns the code for this class.
Returns the instance name.
Sets the properties preventWriting and overwriteExisting based on the string passed as argument
Documentation generated on Mon, 8 Dec 2003 13:10:45 +0100 by phpDocumentor 1.2.3