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

Back to archive index

Minahito minah****@users*****
2006年 8月 4日 (金) 20:43:56 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.60 xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.61
--- xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.60	Thu Aug  3 18:40:27 2006
+++ xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php	Fri Aug  4 20:43:56 2006
@@ -1,7 +1,7 @@
 <?php
 /**
  * @package Legacy
- * @version $Id: Legacy_Controller.class.php,v 1.1.2.60 2006/08/03 09:40:27 minahito Exp $
+ * @version $Id: Legacy_Controller.class.php,v 1.1.2.61 2006/08/04 11:43:56 minahito Exp $
  */
 
 if (!defined('XOOPS_ROOT_PATH')) exit();
@@ -852,6 +852,15 @@
 	}
 
 	/**
+	 * @deprecated
+	 * @see setStrategy()
+	 */
+	function switchStateCompulsory(&$strategy)
+	{
+		$this->setStrategy($strategy);
+	}
+	
+	/**
 	 * CAUTION!!
 	 * This method has a special mission.
 	 * Because this method changes state after executeCommon, this resets now property.
@@ -859,9 +868,9 @@
 	 *
 	 * @param Legacy_AbstractControllerStrategy $strategy
 	 */
-	function switchStateCompulsory($strategy)
+	function setStrategy(&$strategy)
 	{
-		if($state->mStatusFlag != $this->_mStrategy->mStatusFlag) {
+		if($strategy->mStatusFlag != $this->_mStrategy->mStatusFlag) {
 			$this->_mStrategy =& $strategy;
 			
 			//


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