Cache module config in point triggers

This commit is contained in:
Kijin Sung 2017-03-02 15:03:45 +09:00
parent d4136f9081
commit 0b71f425ed
2 changed files with 34 additions and 8 deletions

View file

@ -7,6 +7,23 @@
*/
class point extends ModuleObject
{
/**
* @brief Configuration cache
*/
protected static $_config = null;
/**
* @brief Shortcut to getting module configuration
*/
public function getConfig()
{
if (self::$_config === null)
{
self::$_config = getModel('module')->getModuleConfig('point');
}
return self::$_config;
}
/**
* @brief Additional tasks required to accomplish during the installation
*/