mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-01 00:02:21 +09:00
Move PointController::_getModulePointConfig() to PointModel, where it would be more appropriate
This commit is contained in:
parent
2b8f5ca947
commit
2c1552a523
3 changed files with 71 additions and 78 deletions
|
|
@ -12,16 +12,6 @@ class point extends ModuleObject
|
|||
*/
|
||||
protected static $_config = null;
|
||||
|
||||
/**
|
||||
* Cache for other modules' point configuration.
|
||||
*/
|
||||
protected static $_module_config_cache = array();
|
||||
|
||||
/**
|
||||
* Cache for member points.
|
||||
*/
|
||||
protected static $_member_point_cache = array();
|
||||
|
||||
/**
|
||||
* Triggers to insert.
|
||||
*/
|
||||
|
|
@ -62,11 +52,11 @@ class point extends ModuleObject
|
|||
/**
|
||||
* @brief Shortcut to getting module configuration
|
||||
*/
|
||||
public function getConfig()
|
||||
public static function getConfig()
|
||||
{
|
||||
if (self::$_config === null)
|
||||
{
|
||||
self::$_config = getModel('module')->getModuleConfig('point');
|
||||
self::$_config = ModuleModel::getModuleConfig('point');
|
||||
}
|
||||
return self::$_config;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue