[xoops-cvslog 3685] CVS update: xoops2jp/html/modules/legacyRender/kernel

Back to archive index

Minahito minah****@users*****
2006年 7月 26日 (水) 19:56:35 JST


Index: xoops2jp/html/modules/legacyRender/kernel/Legacy_RenderSystem.class.php
diff -u xoops2jp/html/modules/legacyRender/kernel/Legacy_RenderSystem.class.php:1.1.2.18 xoops2jp/html/modules/legacyRender/kernel/Legacy_RenderSystem.class.php:1.1.2.19
--- xoops2jp/html/modules/legacyRender/kernel/Legacy_RenderSystem.class.php:1.1.2.18	Tue Jul 11 11:58:47 2006
+++ xoops2jp/html/modules/legacyRender/kernel/Legacy_RenderSystem.class.php	Wed Jul 26 19:56:35 2006
@@ -1,6 +1,6 @@
 <?php
 /**
- * @version $Id: Legacy_RenderSystem.class.php,v 1.1.2.18 2006/07/11 02:58:47 minahito Exp $
+ * @version $Id: Legacy_RenderSystem.class.php,v 1.1.2.19 2006/07/26 10:56:35 minahito Exp $
  */
 
 if (!defined('XOOPS_ROOT_PATH')) exit();
@@ -46,7 +46,8 @@
 
 		// XoopsTpl default setup
 		$this->mXoopsTpl =& new XoopsTpl();
-		
+		$this->mXoopsTpl->register_function("legacy_notifications_select", "LegacyRender_smartyfunction_notifications_select");
+
 		// compatible
 		$GLOBALS['xoopsTpl'] =& $this->mXoopsTpl;
 		
@@ -393,4 +394,19 @@
 	}
 }
 
+function LegacyRender_smartyfunction_notifications_select($params, &$smarty)
+{
+	$renderTarget =& new XCube_RenderTarget();
+	$renderTarget->setType(XCUBE_RENDER_TARGET_TYPE_MAIN);
+	$renderTarget->setTemplateName("legacy_notification_select_form.html");
+
+	XCube_DelegateUtils::call('Legacyfunction.Notificatins.Select', new XCube_Ref($renderTarget));
+
+	$root =& XCube_Root::getSingleton();
+	$renderSystem =& $root->getRenderSystem('Legacy_RenderSystem');
+	$renderSystem->renderWithTarget($renderTarget);
+	
+	return $renderTarget->getResult();
+}
+
 ?>
\ No newline at end of file


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