[xoops-cvslog 3543] CVS update: xoops2jp/html/kernel

アーカイブの一覧に戻る

Minahito minah****@users*****
2006年 7月 11日 (火) 19:05:27 JST


Index: xoops2jp/html/kernel/XCube_Controller.class.php
diff -u xoops2jp/html/kernel/XCube_Controller.class.php:1.1.2.11 xoops2jp/html/kernel/XCube_Controller.class.php:1.1.2.12
--- xoops2jp/html/kernel/XCube_Controller.class.php:1.1.2.11	Wed Jun 28 14:44:57 2006
+++ xoops2jp/html/kernel/XCube_Controller.class.php	Tue Jul 11 19:05:26 2006
@@ -60,7 +60,12 @@
 	 * Instance to implement the action process of this controller
 	 * @access private
 	 */
-	var $mActionStrategy=null;
+	var $mActionStrategy = null;
+
+	/**
+	 * @var string or object
+	 */	
+	var $mMainTheme = null;
 
 	function XCube_Controller()
 	{
@@ -358,12 +363,28 @@
 	}
 	
 	/**
-	 * Retern RenderSystem
-	 * @return XCube_RenderSystem
+	 * Set the main theme.
+	 * 
+	 * [Notice]
+	 * Some of sub-classes of XCube_Controller may use object to specify theme.
+	 * So this class uses references.
+	 * 
+	 * @var string or object
 	 */
-	function &getRenderSystem()
+	function setMainTheme(&$theme)
 	{
-		return $this->mRenderSystem;
+		$this->mMainTheme =& $theme;
+	}
+	
+	/**
+	 * Return the main theme.
+	 * 
+	 * @return string or object
+	 * @see XCube_Controller::setMainTheme()
+	 */
+	function &getMainTheme()
+	{
+		return $this->mMainTheme;
 	}
 	
 	function executeView()
@@ -400,9 +421,16 @@
 		exit();
 	}
 
+	/**
+	 * Redirect to the specified URL with displaying message.
+	 * 
+	 * @param string  $url      Can't use html tags.
+	 * @param int     $time
+	 * @param string  $message
+	 */
 	function executeRedirect($url, $time = 1, $message = null)
 	{
-		// TODO
+		$this->executeForward($url, $time, $message);
 	}
 
 	/**


xoops-cvslog メーリングリストの案内
アーカイブの一覧に戻る