Module Class
This is a parent class that all PICKLES modules should be extending. Each module can specify it's own meta data and whether or not a user must be properly authenticated to view the page. Currently any pages without a template are treated as pages being requested via AJAX and the return will be JSON encoded. In the future this may need to be changed out for logic that allows the requested module to specify what display type(s) it can use.
Located in /classes/Module.php (line 28)
Object | --Module
Cache Object
Database Object
Meta Description
Default Display Engine
Defaults to PHP but could be set to JSON, XML or RSS. Value is overwritten by the config value if not set by the module.
Hash
Whether or not to validate the security hash. Boolean true will indicate using the name of the module as the hash, a string value will use the value instead.
Meta Keywords (comma separated)
Method
Request methods that are allowed to access the module.
Private
Whether or not the page can be accessed directly.
Secure
Whether or not the page should be loaded via SSL.
Security Settings
Session
Whether or not a session should be established.
Default Template
Defaults to null but could be set to any valid template basename. The value is overwritten by the config value if not set by the module. The display engine determines what the file extension should be.
Page Title
Constructor
The constructor does nothing by default but can be passed a boolean variable to tell it to automatically run the __default() method. This is typically used when a module is called outside of the scope of the controller (the registration page calls the login page in this manner.
Sets the Request
Default "Magic" Method
This function is overloaded by the module. The __default() method is where you want to place any code that needs to be executed at runtime. The reason the code isn't in the constructor is because the module must be instantiated before the code is executed so that the controller script is aware of the authentication requirements.
Magic Getter Method
Attempts to load the module variable. If it's not set, will attempt to load from the config.
Magic Setter Method
Prohibits the direct modification of module variables.
Documentation generated on Wed, 03 Oct 2012 17:46:05 -0400 by phpDocumentor 1.4.4