[xoops-cvslog 700] CVS update: xoops2jp/html/modules/base/class/template

Back to archive index

Minahito minah****@users*****
2005年 10月 27日 (木) 20:03:53 JST


Index: xoops2jp/html/modules/base/class/template/TemplateDirector.class.php
diff -u xoops2jp/html/modules/base/class/template/TemplateDirector.class.php:1.1.4.3 xoops2jp/html/modules/base/class/template/TemplateDirector.class.php:removed
--- xoops2jp/html/modules/base/class/template/TemplateDirector.class.php:1.1.4.3	Fri Oct 21 19:05:47 2005
+++ xoops2jp/html/modules/base/class/template/TemplateDirector.class.php	Thu Oct 27 20:03:53 2005
@@ -1,62 +0,0 @@
-<?php
-// $Id: TemplateDirector.class.php,v 1.1.4.3 2005/10/21 10:05:47 minahito Exp $
-//  ------------------------------------------------------------------------ //
-//                XOOPS - PHP Content Management System                      //
-//                    Copyright (c) 2000 XOOPS.org                           //
-//                       <http://www.xoops.org/>                             //
-//  ------------------------------------------------------------------------ //
-//  This program is free software; you can redistribute it and/or modify     //
-//  it under the terms of the GNU General Public License as published by     //
-//  the Free Software Foundation; either version 2 of the License, or        //
-//  (at your option) any later version.                                      //
-//                                                                           //
-//  You may not change or alter any portion of this comment or credits       //
-//  of supporting developers from this source code or any supporting         //
-//  source code which is considered copyrighted (c) material of the          //
-//  original comment or credit authors.                                      //
-//                                                                           //
-//  This program is distributed in the hope that it will be useful,          //
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of           //
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            //
-//  GNU General Public License for more details.                             //
-//                                                                           //
-//  You should have received a copy of the GNU General Public License        //
-//  along with this program; if not, write to the Free Software              //
-//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA //
-//  ------------------------------------------------------------------------ //
-
-class XoopsTemplateDirector
-{
-	var $mBuilder;
-	
-	var $mXoopsUser;
-	var $mXoopsModule;
-	var $mXoopsConfig;
-	
-	function XoopsTemplateDirector(&$builder,&$xoopsUser,&$xoopsModule,&$xoopsConfig)
-	{
-		$this->mBuilder=&$builder;
-		$this->mXoopsUser=&$xoopsUser;
-		$this->mXoopsModule=&$xoopsModule;
-		$this->mXoopsConfig=&$xoopsConfig;
-	}
-	
-	function construct()
-	{
-		$this->mBuilder->setDefault();
-		$this->mBuilder->addXoopsConfig($this->mXoopsConfig);
-	    
-		// Meta tags
-		$config_handler=&xoops_gethandler('config');
-		$config =& $config_handler->getConfigsByCat(0,XOOPS_CONF_METAFOOTER);
-		$this->mBuilder->addMetaConfig($config);
-
-		$this->mBuilder->addXoopsUser($this->mXoopsUser);
-		$this->mBuilder->addXoopsModule($this->mXoopsModule);
-		
-//		$this->mBuilder->buildBlock();
-	}
-}
-
-
-?>
\ No newline at end of file
Index: xoops2jp/html/modules/base/class/template/TemplateBuilder.class.php
diff -u xoops2jp/html/modules/base/class/template/TemplateBuilder.class.php:1.1.4.3 xoops2jp/html/modules/base/class/template/TemplateBuilder.class.php:removed
--- xoops2jp/html/modules/base/class/template/TemplateBuilder.class.php:1.1.4.3	Sun Oct 23 15:56:34 2005
+++ xoops2jp/html/modules/base/class/template/TemplateBuilder.class.php	Thu Oct 27 20:03:53 2005
@@ -1,135 +0,0 @@
-<?php
-// $Id: TemplateBuilder.class.php,v 1.1.4.3 2005/10/23 06:56:34 minahito Exp $
-//  ------------------------------------------------------------------------ //
-//                XOOPS - PHP Content Management System                      //
-//                    Copyright (c) 2000 XOOPS.org                           //
-//                       <http://www.xoops.org/>                             //
-//  ------------------------------------------------------------------------ //
-//  This program is free software; you can redistribute it and/or modify     //
-//  it under the terms of the GNU General Public License as published by     //
-//  the Free Software Foundation; either version 2 of the License, or        //
-//  (at your option) any later version.                                      //
-//                                                                           //
-//  You may not change or alter any portion of this comment or credits       //
-//  of supporting developers from this source code or any supporting         //
-//  source code which is considered copyrighted (c) material of the          //
-//  original comment or credit authors.                                      //
-//                                                                           //
-//  This program is distributed in the hope that it will be useful,          //
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of           //
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            //
-//  GNU General Public License for more details.                             //
-//                                                                           //
-//  You should have received a copy of the GNU General Public License        //
-//  along with this program; if not, write to the Free Software              //
-//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA //
-//  ------------------------------------------------------------------------ //
-
-require_once XOOPS_ROOT_PATH.'/class/template.php';
-require_once XOOPS_ROOT_PATH."/modules/base/class/BlockProcContext.class.php";
-
-class XoopsTemplateBuilder
-{
-	var $mXoopsTpl;
-	var $mXoopsConfig;
-	var $mXoopsUser;
-	var $mXoopsModule;
-	
-	function XoopsTemplateBuilder()
-	{
-		$this->mXoopsTpl=new XoopsTpl();
-	}
-
-	function setDefault()
-	{
-		$this->mXoopsTpl->xoops_setCaching(2);
-		$this->mXoopsTpl->assign(array('xoops_requesturi' => htmlspecialchars($GLOBALS['xoopsRequestUri'], ENT_QUOTES),	//@todo ƒOƒ[ƒoƒ‹‚ւ̃AƒNƒZƒX‹ÖŽ~
-									// set JavaScript /Weird, but need extra <script> tags for 2.0.x themes
-									'xoops_js' => '//--></script><script type="text/javascript" src="'.XOOPS_URL.'/include/xoops.js"></script><script type="text/javascript"><!--'
-								));
-	}
-	
-	function addXoopsConfig(&$xoopsConfig)
-	{
-		$this->mXoopsConfig=$xoopsConfig;
-		
-		$debugger=&XoopsDebuggerManager::getInstance($xoopsConfig['debug_mode']);
-		$debugger->visitXoopsTemplate($this->mXoopsTpl);
-			
-		$this->mXoopsTpl->assign(array('xoops_theme' => $xoopsConfig['theme_set'],
-									'xoops_imageurl' => XOOPS_THEME_URL.'/'.$xoopsConfig['theme_set'].'/',
-									'xoops_themecss'=> xoops_getcss($xoopsConfig['theme_set']),
-									'xoops_requesturi' => htmlspecialchars($GLOBALS['xoopsRequestUri'], ENT_QUOTES),	//@todo ƒOƒ[ƒoƒ‹‚ւ̃AƒNƒZƒX‹ÖŽ~
-									'xoops_sitename' => htmlspecialchars($xoopsConfig['sitename'], ENT_QUOTES),
-									'xoops_slogan' => htmlspecialchars($xoopsConfig['slogan'], ENT_QUOTES),
-									// set JavaScript/Weird, but need extra <script> tags for 2.0.x themes
-									'xoops_js' => '//--></script><script type="text/javascript" src="'.XOOPS_URL.'/include/xoops.js"></script><script type="text/javascript"><!--'
-								));
-
-		// If this site has the setting of banner.
-		if($xoopsConfig['banners']==1)
-			$this->mXoopsTpl->assign('xoops_banner',xoops_getbanner());
-		else
-			$this->mXoopsTpl->assign('xoops_banner','&nbsp;');
-	}
-	
-	function addMetaConfig(&$configs)
-	{
-		foreach ($configs as $config) {
-		    // prefix each tag with 'xoops_'
-	        $this->mXoopsTpl->assign('xoops_'.$config->getVar('conf_name'),	$config->getConfValueForOutput());
-	    }
-    }
-    
-    function addXoopsUser(&$xoopsUser)
-    {
-		$this->mXoopsUser=$xoopsUser;
-		$arr=array();
-
-		if(is_object($xoopsUser)) {
-			$arr = array(
-				'xoops_isuser' => true,
-				'xoops_userid' => $xoopsUser->getVar('uid'),
-				'xoops_uname' => $xoopsUser->getVar('uname'),
-				'xoops_isadmin' => $xoopsUser->isAdmin());
-		}
-		else {
-			$arr = array(
-				'xoops_isuser' => false,
-				'xoops_isadmin' => false);
-		}
-
-		$this->mXoopsTpl->assign($arr);
-	}
-	
-	function addXoopsModule(&$xoopsModule)
-	{
-		$this->mXoopsModule=&$xoopsModule;
-		if(isset($xoopsModule)&&is_object($xoopsModule)) {	// The process of module
-			$this->mXoopsTpl->assign(array('xoops_pagetitle' => $xoopsModule->getVar('name'), 'xoops_modulename' => $xoopsModule->getVar('name'), 'xoops_dirname' => $xoopsModule->getVar('dirname')));
-		}
-		else {
-			$this->mXoopsTpl->assign('xoops_pagetitle', htmlspecialchars($this->mXoopsConfig['slogan'], ENT_QUOTES));
-		}
-	}
-	
-	/**
-	Work the process of blocks, assign its result to template.
-	@access public
-	@todo Should there be this processing here?
-	*/
-	function buildBlock()
-	{
-		$blockProc=new BlockProcContext();
-		$blockProc->setBlockObjs($this->_getBlockObjects());
-		$blockProc->setXoopsTpl($this->mXoopsTpl);
-		$blockProc->execute();
-	}
-	
-	function &getResult()
-	{
-		return $this->mXoopsTpl;
-	}
-}
-
-?>
\ No newline at end of file


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