Move PointController::_getModulePointConfig() to PointModel, where it would be more appropriate

This commit is contained in:
Kijin Sung 2023-06-19 13:40:36 +09:00
parent 2b8f5ca947
commit 2c1552a523
3 changed files with 71 additions and 78 deletions

View file

@ -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;
}