mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Prepare methods to manage independent sections of module config, in case module config becomes too large
This commit is contained in:
parent
9cfcd7cb37
commit
3c456ce0b5
2 changed files with 53 additions and 14 deletions
|
|
@ -1208,8 +1208,7 @@ class moduleModel extends module
|
|||
}
|
||||
|
||||
/**
|
||||
* @brief Return module configurations
|
||||
* Global configuration is used to manage board, member and others
|
||||
* Get global config for a module.
|
||||
*
|
||||
* @param string $module
|
||||
* @return mixed
|
||||
|
|
@ -1249,8 +1248,19 @@ class moduleModel extends module
|
|||
}
|
||||
|
||||
/**
|
||||
* @brief Return the module configuration of mid
|
||||
* Manage mid configurations which depend on module
|
||||
* Get an independent section of module config.
|
||||
*
|
||||
* @param string $module
|
||||
* @param string $section
|
||||
* @return mixed
|
||||
*/
|
||||
public static function getModuleSectionConfig($module, $section)
|
||||
{
|
||||
return self::getModuleConfig("$module:$section");
|
||||
}
|
||||
|
||||
/**
|
||||
* Get config for a specific module_srl.
|
||||
*
|
||||
* @param string module
|
||||
* @param int $module_srl
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue