[xoops-cvslog 1200] CVS update: xoops2jp/html/modules/comment/event

Back to archive index

Minahito minah****@users*****
2005年 11月 25日 (金) 13:26:00 JST


Index: xoops2jp/html/modules/comment/event/CommentEventFunction.class.php
diff -u xoops2jp/html/modules/comment/event/CommentEventFunction.class.php:1.1.2.2 xoops2jp/html/modules/comment/event/CommentEventFunction.class.php:1.1.2.3
--- xoops2jp/html/modules/comment/event/CommentEventFunction.class.php:1.1.2.2	Fri Nov 25 03:12:24 2005
+++ xoops2jp/html/modules/comment/event/CommentEventFunction.class.php	Fri Nov 25 13:26:00 2005
@@ -2,13 +2,46 @@
 
 class CommentEventFunction
 {
-	function PostFormAccess(&$controller,&$eventArgs)
+/*	function PostFormAccess(&$controller,&$eventArgs)
 	{
 		require_once XOOPS_ROOT_PATH."/modules/comment/forms/CommentPostForm.class.php";
 		$form=new CommentPostForm();
 		$form->prepare();
 
 		$controller->mRenderSystem->setAttribute("comment_ComentPostForm",$form);
+	}*/
+	
+	/**
+	 *  TEST
+	 */
+	function PostFormAccess(&$controller,&$envetArgs)
+	{
+		$controller->mRoot->mLanguageManager->loadModuleLanguage("comment");
+
+		require_once XOOPS_ROOT_PATH."/modules/comment/forms/CommentPostForm.class.php";
+		$form=new CommentPostForm();
+		$form->prepare();
+		
+		$renderTarget=new CommentRenderTarget();
+		$renderTarget->setAttribute("actionForm",$form);
+		$renderTarget->setTemplateName("comment_post_input.html");
+
+		$controller->mRenderSystem->renderWithTarget($renderTarget);
+		
+		$controller->mRenderSystem->setAttribute("comment_post_form",$renderTarget->getResult());
+	}
+}
+
+class CommentRenderTarget extends XCube_RenderTarget
+{
+	function CommentRenderTarget()
+	{
+		parent::XCube_RenderTarget();
+	}
+	
+	function isTheme()
+	{
+		return false;
 	}
 }
 


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