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

Back to archive index

Minahito minah****@users*****
2006年 9月 28日 (木) 19:22:38 JST


Index: xoops2jp/html/kernel/XCube_HttpContext.class.php
diff -u xoops2jp/html/kernel/XCube_HttpContext.class.php:1.1.2.1 xoops2jp/html/kernel/XCube_HttpContext.class.php:1.1.2.2
--- xoops2jp/html/kernel/XCube_HttpContext.class.php:1.1.2.1	Thu Sep 28 14:00:41 2006
+++ xoops2jp/html/kernel/XCube_HttpContext.class.php	Thu Sep 28 19:22:38 2006
@@ -1,7 +1,7 @@
 <?php
 /**
  * @package XCube
- * @version $Id: XCube_HttpContext.class.php,v 1.1.2.1 2006/09/28 05:00:41 minahito Exp $
+ * @version $Id: XCube_HttpContext.class.php,v 1.1.2.2 2006/09/28 10:22:38 minahito Exp $
  */
 
 define("XCUBE_CONTEXT_TYPE_DEFAULT", "web_browser");
@@ -189,4 +189,32 @@
 	}
 }
 
+/**
+ * A kind of request objects. This class is free to register values.
+ */
+class XCube_GenericRequest extends XCube_AbstractRequest
+{
+	/**
+	 * Hash map which stores registered values.
+	 * @var Array
+	 */
+	var $mAttributes = array();
+	
+	function XCube_GenericRequest($arr = null)
+	{
+		if (is_array($arr)) {
+			$this->mAttributes = $arr;
+		}
+	}
+
+	function getRequest($key)
+	{
+		if (!isset($this->mAttributes[$key])) {
+			return null;
+		}
+		
+		return $this->mAttributes[$key];
+	}
+}
+
 ?>
\ No newline at end of file


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