[xoops-cvslog 3670] CVS update: xoops2jp/html/modules/base/kernel

Back to archive index

Minahito minah****@users*****
2006年 7月 26日 (水) 11:54:44 JST


Index: xoops2jp/html/modules/base/kernel/Legacy_ModuleController.class.php
diff -u xoops2jp/html/modules/base/kernel/Legacy_ModuleController.class.php:1.1.2.6 xoops2jp/html/modules/base/kernel/Legacy_ModuleController.class.php:1.1.2.7
--- xoops2jp/html/modules/base/kernel/Legacy_ModuleController.class.php:1.1.2.6	Thu Jun 22 14:36:58 2006
+++ xoops2jp/html/modules/base/kernel/Legacy_ModuleController.class.php	Wed Jul 26 11:54:44 2006
@@ -1,5 +1,8 @@
 <?php
-// $Id: Legacy_ModuleController.class.php,v 1.1.2.6 2006/06/22 05:36:58 minahito Exp $
+/**
+ * @package legacy
+ */
+// $Id: Legacy_ModuleController.class.php,v 1.1.2.7 2006/07/26 02:54:44 minahito Exp $
 //  ------------------------------------------------------------------------ //
 //              XOOPS Cube - PHP Content Management System                   //
 //                  Copyright (c) 2005 XOOPS Cube.org                        //
@@ -34,32 +37,36 @@
 	var $mModuleObject;
 
 	var $mController;
+	
 	var $mConfig;
 	
 	function Legacy_ModuleController(&$controller)
 	{
-		$this->mController=&$controller;
+		$this->mController =& $controller;
 	}
 
-	function getConfig($key=null)
+	function getConfig($key = null)
 	{
-		if($key!=null)
+		if($key != null) {
 			return isset($this->mConfig[$key]) ? $this->mConfig[$key] : null;
-		else
+		}
+		else {
 			return $this->mConfig;
+		}
 	}
-	
 
 	function prepare()
 	{
 		// Is this request module process?
-		if(!$this->isModuleProcess())
+		if (!$this->isModuleProcess()) {
 			return;
+		}
 
 		$this->_createModuleObject();
 			
-		if(!$this->isActive())
+		if (!$this->isActive()) {
 			return;
+		}
 
 		//
 		// Set config values for this module
@@ -122,7 +129,7 @@
 	function _createModuleObject()
 	{
 		$moduleHandler=&xoops_gethandler('module');
-		$this->mModuleObject=&$moduleHandler->getByDirname($this->_getDirname());
+		$this->mModuleObject =& $moduleHandler->getByDirname($this->_getDirname());
 	}
 
 
@@ -135,7 +142,7 @@
 	function setupLanguage()
 	{
 		$languageManager=&$this->mController->mRoot->getLanguageManager();
-		$languageManager->loadModuleLanguage($this->mModuleObject->getVar('dirname'));
+		$languageManager->loadModuleMessageCatalog($this->mModuleObject->getVar('dirname'));
 	}
 	
 	function _processErrorModuleNotExist()


xoops-cvslog メーリングリストの案内
Back to archive index