Minahito
minah****@users*****
2006年 8月 21日 (月) 18:59:13 JST
Index: xoops2jp/html/modules/base/admin/class/AbstractModuleInstaller.class.php diff -u xoops2jp/html/modules/base/admin/class/AbstractModuleInstaller.class.php:1.1.2.8 xoops2jp/html/modules/base/admin/class/AbstractModuleInstaller.class.php:1.1.2.9 --- xoops2jp/html/modules/base/admin/class/AbstractModuleInstaller.class.php:1.1.2.8 Tue Jul 25 19:08:42 2006 +++ xoops2jp/html/modules/base/admin/class/AbstractModuleInstaller.class.php Mon Aug 21 18:59:12 2006 @@ -12,6 +12,26 @@ */ class Legacy_AbstractModuleInstaller { + /** + * @var XCube_Delegate + */ + var $mProcessScript = null; + + /** + * Install or uninstall templates of this target module, this function is + * called by own execute(). + * + * @var XCube_Delegate + */ + var $mInstallTemplate = null; + + /** + * Create or drop tables, this function is called by own execute(). + * + * @var XCube_Delegate + */ + var $mInstallTable = null; + var $mDirname = null; /** @@ -42,6 +62,10 @@ if (is_object($root->mLanguageManager)) { $root->mLanguageManager->loadModuleAdminMessageCatalog('base'); } + + $this->mProcessScript =& new XCube_Delegate(); + $this->mInstallTable =& new XCube_Delegate(); + $this->mInstallTemplate =& new XCube_Delegate(); } /** @@ -59,7 +83,7 @@ return false; } - $this->_installTable(); + $this->mInstallTable->call(new XCube_Ref($this->mModule), new XCube_Ref($this->mLog)); if (!$this->mForceMode && $this->mLog->hasError()) { $this->_processReport(); return false; @@ -71,7 +95,7 @@ return false; } - $this->_installTemplate(); + $this->mInstallTemplate->call(new XCube_Ref($this->mModule), new XCube_Ref($this->mLog)); if (!$this->mForceMode && $this->mLog->hasError()) { $this->_processReport(); return false; @@ -95,7 +119,7 @@ return false; } - $this->_processScript(); + $this->mProcessScript->call(new XCube_Ref($this->mModule), new XCube_Ref($this->mLog)); $this->_processReport(); @@ -125,20 +149,6 @@ } /** - * Create or drop tables, this function is called by own execute(). - */ - function _installTable() - { - } - - /** - * Install or uninstall templates of this target module, this function is called by own execute(). - */ - function _installTemplate() - { - } - - /** * Install or uninstall blocks and their templates, this function is called by own execute(). */ function _installBlock() @@ -162,10 +172,6 @@ { } - function _processScript() - { - } - /** * If set true, this class may never stop for error. */