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

Back to archive index

Minahito minah****@users*****
2005年 12月 26日 (月) 20:03:26 JST


Index: xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php
diff -u xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.6 xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.7
--- xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.6	Mon Dec 26 18:07:36 2005
+++ xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php	Mon Dec 26 20:03:26 2005
@@ -51,24 +51,29 @@
 	function executeCommon()
 	{
 		parent::executeCommon();
-		
+
+
+		// ----------------------------------------------------------
+		// The following lines is comment out for publishing snapshot
+		// ----------------------------------------------------------
+
 		//
 		// [TEST]
 		// I append a content manager that manages content id for comment or other.
 		// I don't decide that Cube kernel keep this, yet.
 		//
-		require_once XOOPS_BASE_PATH."/kernel/Legacy_ContentManager.class.php";
-		$manager=new Legacy_ContentManager($this->mRoot);
-		$this->mRoot->ContentManager=&$manager;
+//		require_once XOOPS_BASE_PATH."/kernel/Legacy_ContentManager.class.php";
+//		$manager=new Legacy_ContentManager($this->mRoot);
+//		$this->mRoot->ContentManager=&$manager;
 
 		// [TEST]
-		require_once XOOPS_ROOT_PATH."/kernel/XCube_TextModifier.class.php";
-		$manager=new XCube_TextModifierManager();
-		$this->mRoot->setModifierManager($manager);
-
-		require_once XOOPS_BASE_PATH."/class/BBCode_Modifier.class.php";
-		$modifier=new BBCode_Modifier();
-		$this->mRoot->ModifierManager->addModifier($modifier);
+//		require_once XOOPS_ROOT_PATH."/kernel/XCube_TextModifier.class.php";
+//		$manager=new XCube_TextModifierManager();
+//		$this->mRoot->setModifierManager($manager);
+
+//		require_once XOOPS_BASE_PATH."/class/BBCode_Modifier.class.php";
+//		$modifier=new BBCode_Modifier();
+//		$this->mRoot->ModifierManager->addModifier($modifier);
 	}
 
 	function _setupLogger()
@@ -441,6 +446,10 @@
 	{
 		$manager=&parent::_createEventManager();
 
+		//
+		// TODO We should stop hard-cording in the following lines.
+		//
+
 		require_once XOOPS_ROOT_PATH."/modules/user/kernel/UserEventProxyRegister.class.php";
 		$manager->addProxyRegister(new UserEventProxyRegister());
 		$manager->add("Site.Login",new XCube_Delegate("UserCommonEventFunction","Login"));	// TODO
@@ -448,11 +457,14 @@
 		require_once XOOPS_ROOT_PATH."/modules/pm/kernel/PmEventProxyRegister.class.php";
 		$manager->addProxyRegister(new PmEventProxyRegister());
 
+		require_once XOOPS_ROOT_PATH."/modules/base/kernel/MiscEventFunctions.class.php";
+		$manager->setAnchorDelegate("Legacypage.Misc.Access", new XCube_Delegate("Legacy_MiscEventFunction","AccessToMisc"));
+
 		//
 		// We write the following lines for test here.
 		//
-		require_once XOOPS_ROOT_PATH."/modules/comment/event/CommentEventProxyRegister.class.php";
-		$manager->addProxyRegister(new CommentEventProxyRegister());
+//		require_once XOOPS_ROOT_PATH."/modules/comment/event/CommentEventProxyRegister.class.php";
+//		$manager->addProxyRegister(new CommentEventProxyRegister());
 
 		$manager->setAnchorDelegate("Site.CheckLogin",new XCube_InstanceDelegate($this,"eventCheckLogin"));
 		$manager->setAnchorDelegate("Site.Logout",new XCube_InstanceDelegate($this,"eventLogout"));
@@ -467,14 +479,14 @@
 		//
 		// TODO : Now, we register services we specified. However, this process should be customized by user.
 		//
-
 		require_once XOOPS_ROOT_PATH."/modules/pm/service/LegacyPmService.class.php";
 		$service=new LegacyPmService();
 		$manager->addXCubeService("PrivateMessage",$service);
+		unset($service);
 
-		require_once XOOPS_ROOT_PATH."/modules/comment/service/LegacyCommentService.class.php";
-		$service=new LegacyCommentService();
-		$manager->addXCubeService("Comment",$service);
+//		require_once XOOPS_ROOT_PATH."/modules/comment/service/LegacyCommentService.class.php";
+//		$service=new LegacyCommentService();
+//		$manager->addXCubeService("Comment",$service);
 
 		return $manager;
 	}
@@ -542,6 +554,26 @@
 	{
 		return $this->mXoopsUser;
 	}
+
+	/**
+	 * Set bool flag to dialog mode flag.
+	 * If you set true, executeView() will use Legacy_DialogRenderTarget class as
+	 * render target.
+	 * @param $flag bool
+	 */
+	function setDialogMode($flag)
+	{
+		$this->mDialogMode = $flag;
+	}
+
+	/**
+	 * Return dialog mode flag.
+	 * @return bool
+	 */
+	function getDialogMode()
+	{
+		return $this->mDialogMode;
+	}
 }
 
 /**


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