[xoops-cvslog 1241] CVS update: xoops2jp/html/class

Back to archive index

Minahito minah****@users*****
2005年 11月 29日 (火) 16:18:32 JST


Index: xoops2jp/html/class/XCube_Root.class.php
diff -u xoops2jp/html/class/XCube_Root.class.php:1.1.2.8 xoops2jp/html/class/XCube_Root.class.php:removed
--- xoops2jp/html/class/XCube_Root.class.php:1.1.2.8	Tue Nov 29 16:13:16 2005
+++ xoops2jp/html/class/XCube_Root.class.php	Tue Nov 29 16:18:32 2005
@@ -1,144 +0,0 @@
-<?php
-
-/**
- * This class offers the access course same as global variable for a logic in old mechanism.
- * This class does not let you depend on a main controller class name
- * You must not succeed to this class.
- *
- * @final
- */
-class XCube_Root
-{
-	/**
-	@access private
-	*/
-	var $mController=null;
-	
-	/**
-	 * @access private
-	 */
-	var $mFeatureManager=null;
-
-	/**
-	 * @access private ?
-	 */
-	var $mLanguageManager=null;
-	
-	var $mEventManager=null;
-	
-	var $mServiceManager=null;
-
-	var $mRenderSystem;
-	
-	var $mSiteConfig;
-
-	var $mModifiers=array();
-
-	function XCube_Root()
-	{
-	}
-
-	/**
-	 * @return XCube_Root
-	 */
-	function &getSingleton()
-	{
-		static $instance;
-		if(!isset($instance))
-			$instance=new XCube_Root();
-		
-		return $instance;
-	}
-
-	function setSiteConfig($config)
-	{
-		$this->mSiteConfig=$config;
-	}
-	
-	function getSiteConfig()
-	{
-		//
-		// TODO Check keys with using 'isset'
-		//
-		if(func_num_args()==0) {
-			return $this->mSiteConfig;
-		}
-		elseif(func_num_args()==1) {
-			if(isset($this->mSiteConfig[func_get_arg(0)]))
-				return $this->mSiteConfig[func_get_arg(0)];
-		}
-		elseif(func_num_args()==2) {
-			if(isset($this->mSiteConfig[func_get_arg(0)][func_get_arg(1)]))
-				return $this->mSiteConfig[func_get_arg(0)][func_get_arg(1)];
-		}
-
-		return null;
-	}
-
-	function &createController($className='XCube_Controller',$classpath=null)
-	{
-		if(!$this->mController) {
-			if($classpath!=null)
-				require_once XOOPS_ROOT_PATH."/".$classpath."/".$className.".class.php";
-			if(class_exists($className))
-				$this->mController = new $className($this);
-		}
-		
-		return $this->mController;
-	}
-
-	function &getController()
-	{
-		return $this->mController;
-	}
-
-	function setFeatureManager(&$featureManager)
-	{
-		$this->mFeatureManager=&$featureManager;
-	}
-	
-	function &getFeatureManager()
-	{
-		return $this->mFeatureManager;
-	}
-	
-	function setLanguageManager(&$languageManager)
-	{
-		$this->mLanguageManager=&$languageManager;
-	}
-	
-	function &getLanguageManager()
-	{
-		return $this->mLanguageManager;
-	}
-	
-	function setEventManager(&$eventManager)
-	{
-		$this->mEventManager=&$eventManager;
-	}
-	
-	function &getEventManager()
-	{
-		return $this->mEventManager;
-	}
-	
-	function setServiceManager(&$serviceManager)
-	{
-		$this->mServiceManager=&$serviceManager;
-	}
-	
-	function &getServiceManager()
-	{
-		return $this->mServiceManager;
-	}
-	
-	function addModifilers(&$modifier)
-	{
-		if(is_a($modifier,"XCube_TextModifier")) {
-			$this->mModifiers[$modifier->getName()]=&$modifier;
-		}
-	}
-}
-
-
-?>
\ No newline at end of file


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