XOOPS Cube Legacy base repository
Revisión | 6e6d89adf24e44485c53a38a331d0a53096b9ee3 (tree) |
---|---|
Tiempo | 2011-11-11 00:02:00 |
Autor | nbuy <nbuy@704c...> |
Commiter | nbuy |
XoopsObject constractor cache for speedup
git-svn-id: https://xoopscube.svn.sourceforge.net/svnroot/xoopscube/Package_Legacy/trunk@1044 704cf05f-ae62-4b0e-a484-234ee0250e75
@@ -16,6 +16,11 @@ class LegacyThemeObject extends XoopsSimpleObject | ||
16 | 16 | { |
17 | 17 | function LegacyThemeObject() |
18 | 18 | { |
19 | + static $initVars; | |
20 | + if (isset($initVars)) { | |
21 | + $this->mVars = $initVars; | |
22 | + return; | |
23 | + } | |
19 | 24 | $this->initVar('name', XOBJ_DTYPE_STRING, '', true, 255); |
20 | 25 | $this->initVar('dirname', XOBJ_DTYPE_STRING, '', true, 255); |
21 | 26 | $this->initVar('screenshot', XOBJ_DTYPE_STRING, '', false, 255); |
@@ -29,6 +34,7 @@ class LegacyThemeObject extends XoopsSimpleObject | ||
29 | 34 | |
30 | 35 | // For TYPO |
31 | 36 | $this->initVar('licence', XOBJ_DTYPE_STRING, '', true, 255); |
37 | + $initVars = $this->mVars; | |
32 | 38 | } |
33 | 39 | } |
34 | 40 |