mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
Cache module config in point triggers
This commit is contained in:
parent
d4136f9081
commit
0b71f425ed
2 changed files with 34 additions and 8 deletions
|
|
@ -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
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue