This class is to display modules in DiY-CMS.
It manages modules files display, templates, settings, permissons and template inclusion
Located in /includes/module.class.php (line 40)
Constructor: load main functions, search for the main files and load templates
First this function searches for the first parmater as the module to be loaded, if it is empty then $_GET['mod'] value will be loaded otherwise redirect to the website's home page. If $_GET['dir'] is speicifed and it is not the admin directory then assign its value to $this->dir otherwise assume it is the main module directory. If the value of $_GET['file'] is not set the function will display the index.php page, otherwise dispaly the file if the file does not exist then display an error message. Lastly, the function will load the module templates and module settings into arrays to reduce page load and for later use by other functions
retrive the template specificed for the loaded module
proccess template inclusion within loaded module.
if a template is included within a template then this function will proccess it as a template , this function is dependent on $mod->setting()
get loaded module detalies: name, groups allowed to view module, menus alignment .. etc.
check if loaded module is enabled or disabled.
If it it is disabled then check if Admin is logged in and display it, otherwise display a login page
get module name and clean it
output the module. Function checks if a page is set (within a directory or not) and then display it
This function get the navigation bar for the loaded module
check for for the value retrived from module::setting if a group setting was specified
This function gets the value of a specific setting of the loaded moudle.
The second paramater can be empty when the value of the settings is not based on a group permission which has type 7 in the database.
Documentation generated on Fri, 16 Apr 2010 12:54:46 +1000 by phpDocumentor 1.4.1