Static Public Member Functions | |
| static | __static () |
| static | get_all () |
| static | get_active () |
| static | set_active ($modules) |
| static | register ($name) |
| static | unregister ($name) |
| static | add ($module_name) |
| static | remove ($module_id) |
| static | remove_by_name ($module_name) |
| static | storage_name ($module_id, $option) |
| static | set_option ($module_id, $option, $value) |
| static | get_option ($module_id, $option) |
| static | commit () |
| static | commit_active () |
| static | setup_status_module () |
| static | filter_dash_module_status ($module, $id, $theme) |
Provides an interface for the code to access modules and module options
Definition at line 12 of file modules.php.
| static Modules::__static | ( | ) | [static] |
static initializer to setup base vars.
Definition at line 21 of file modules.php.
| static Modules::add | ( | $ | module_name | ) | [static] |
function add Adds a module to the user's dashboard. Generate a unique module ID
| string | $module_name the name of the module to add |
Definition at line 100 of file modules.php.
Referenced by CoreDashModules::action_plugin_activation(), AdminDashboardHandler::ajax_dashboard(), and AdminDashboardHandler::dash_additem().
| static Modules::commit | ( | ) | [static] |
function commit Saves the available modules list to the options table
Definition at line 192 of file modules.php.
Referenced by register(), and unregister().
| static Modules::commit_active | ( | ) | [static] |
function commit_active Saves the active modules list to the userinfo table.
Definition at line 201 of file modules.php.
Referenced by __static(), add(), remove(), remove_by_name(), set_active(), and unregister().
| static Modules::filter_dash_module_status | ( | $ | module, | |
| $ | id, | |||
| $ | theme | |||
| ) | [static] |
Provide the content for the System Status dashboard module
| array | $module the module data | |
| string | $id the id of the module | |
| Theme | $theme an associated theme for outputting a template |
Definition at line 236 of file modules.php.
| static Modules::get_active | ( | ) | [static] |
function get_active Returns a list of modules currently active on the dashboard, sorted by display order
Definition at line 52 of file modules.php.
Referenced by AdminDashboardHandler::fetch_dashboard_modules().
| static Modules::get_all | ( | ) | [static] |
function get_all returns a list of all available modules
Definition at line 41 of file modules.php.
Referenced by AdminDashboardHandler::fetch_dashboard_modules(), and AdminDashboardHandler::filter_dash_module_add_item().
| static Modules::get_option | ( | $ | module_id, | |
| $ | option | |||
| ) | [static] |
function get_option Gets a module option
| string | $module_id | |
| string | $option |
Definition at line 182 of file modules.php.
Referenced by CoreDashModules::filter_dash_module_latest_log_activity().
| static Modules::register | ( | $ | name | ) | [static] |
function register Registers a module to make it available in the 'add item' module
| string | $name module name |
Definition at line 73 of file modules.php.
Referenced by setup_status_module().
| static Modules::remove | ( | $ | module_id | ) | [static] |
function remove Removes a module from the user's dashboard
| string | $module_id The ID of the module to remove |
Definition at line 126 of file modules.php.
Referenced by AdminDashboardHandler::ajax_dashboard().
| static Modules::remove_by_name | ( | $ | module_name | ) | [static] |
function remove_by_name Removes all modules with a given name from the user's dashboard
| string | $module_name |
Definition at line 137 of file modules.php.
Referenced by CoreDashModules::action_plugin_deactivation(), and unregister().
| static Modules::set_active | ( | $ | modules | ) | [static] |
function set_active Saves the list of active modules to the userinfo table
| array | An associative array of module names with the moduleIDs at keys. |
Definition at line 62 of file modules.php.
Referenced by AdminDashboardHandler::ajax_dashboard().
| static Modules::set_option | ( | $ | module_id, | |
| $ | option, | |||
| $ | value | |||
| ) | [static] |
function set_option Sets a module option
| string | $module_id | |
| string | $option | |
| mixed | $value |
Definition at line 167 of file modules.php.
| static Modules::setup_status_module | ( | ) | [static] |
Retrieve any system status info, if available
Definition at line 211 of file modules.php.
Referenced by __static().
| static Modules::storage_name | ( | $ | module_id, | |
| $ | option | |||
| ) | [static] |
function storage_name ( $module_id, $option ) Gets the storage name for a module option
| string | $module_id the module id | |
| string | $option the option name |
Definition at line 154 of file modules.php.
Referenced by get_option(), and set_option().
| static Modules::unregister | ( | $ | name | ) | [static] |
function unregister Unregisters a module to remove it from the 'add item' module list
| string | $name module name |
Definition at line 85 of file modules.php.
1.7.1