• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

XOOPS Cube Legacy base repository


Commit MetaInfo

Revisión6e6d89adf24e44485c53a38a331d0a53096b9ee3 (tree)
Tiempo2011-11-11 00:02:00
Autornbuy <nbuy@704c...>
Commiternbuy

Log Message

XoopsObject constractor cache for speedup

git-svn-id: https://xoopscube.svn.sourceforge.net/svnroot/xoopscube/Package_Legacy/trunk@1044 704cf05f-ae62-4b0e-a484-234ee0250e75

Cambiar Resumen

Diferencia incremental

--- a/html/modules/legacy/class/theme.php
+++ b/html/modules/legacy/class/theme.php
@@ -16,6 +16,11 @@ class LegacyThemeObject extends XoopsSimpleObject
1616 {
1717 function LegacyThemeObject()
1818 {
19+ static $initVars;
20+ if (isset($initVars)) {
21+ $this->mVars = $initVars;
22+ return;
23+ }
1924 $this->initVar('name', XOBJ_DTYPE_STRING, '', true, 255);
2025 $this->initVar('dirname', XOBJ_DTYPE_STRING, '', true, 255);
2126 $this->initVar('screenshot', XOBJ_DTYPE_STRING, '', false, 255);
@@ -29,6 +34,7 @@ class LegacyThemeObject extends XoopsSimpleObject
2934
3035 // For TYPO
3136 $this->initVar('licence', XOBJ_DTYPE_STRING, '', true, 255);
37+ $initVars = $this->mVars;
3238 }
3339 }
3440