[xoops-cvslog 1159] CVS update: xoops2jp/html/modules/comment/actions

Back to archive index

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


Index: xoops2jp/html/modules/comment/actions/CommentDeleteAction.class.php
diff -u xoops2jp/html/modules/comment/actions/CommentDeleteAction.class.php:1.1.2.2 xoops2jp/html/modules/comment/actions/CommentDeleteAction.class.php:1.1.2.3
--- xoops2jp/html/modules/comment/actions/CommentDeleteAction.class.php:1.1.2.2	Thu Nov 24 18:38:12 2005
+++ xoops2jp/html/modules/comment/actions/CommentDeleteAction.class.php	Fri Nov 25 00:18:25 2005
@@ -1,58 +1,58 @@
-<?php
-
-class CommentDeleteAction extends CommentAction
-{
-	var $mComment;
-
-	/**
-	 * @param $controller Base_Controller
-	 * @param $xoopsUser XoopsUserObject
-	 */
-	function getDefaultView(&$controller,&$xoopsUser)
-	{
-		$id=isset($_REQUEST['id']) ? intval($_REQUEST['id']) : 0;
-		
-		$paramaters=array("id"=>$id);
-		$comment=&$this->mClient->call("getComment",$pamaraters);
-
-		if(is_object($comment)) {
-			$this->mComment=&$comment;
-			return COMMENT_FRAME_VIEW_INPUT;
-		}
-		
-		return COMMENT_FRAME_VIEW_ERROR;
-	}
-	
-	function execute()
-	{
-		$id = intval($_REQUEST["id"]);
-		$deleteAllFlag = intval($_REQUEST["DeleteAll"])==1 ? true : false;
-
-		//
-		// TODO We check a permission that user can delete this comment.
-		//
-
-		$parameters=array('Id'=>$id);
-		if($deleteAllFlag) {
-			$result=&$this->mClient->call("Delete",$parameters);
-		}
-		else {
-			$result=&$this->mClient->call("DeleteAll",$parameters);
-		}
-		
-		return COMMENT_FRAME_VIEW_SUCCESS;
-	}
-	
-	function executeViewSuccess(&$controller,&$xoopsUser,&$renderSystem)
-	{
-		XCube_Utils::redirectHeader(XOOPS_URL,1,"delete!");
-	}
-
-	function executeViewInput(&$controller,&$xoopsUser,&$renderSystem)
-	{
-		$renderSystem->setTemplateName("comment_delete_input.html");
-		$renderSystem->setAttribute("comment",$this->mComment);
-	}
-}
-
+<?php
+
+class CommentDeleteAction extends CommentAction
+{
+	var $mComment;
+
+	/**
+	 * @param $controller Base_Controller
+	 * @param $xoopsUser XoopsUserObject
+	 */
+	function getDefaultView(&$controller,&$xoopsUser)
+	{
+		$id=isset($_REQUEST['id']) ? intval($_REQUEST['id']) : 0;
+		
+		$paramaters=array("id"=>$id);
+		$comment=&$this->mClient->call("getComment",$pamaraters);
+
+		if(is_object($comment)) {
+			$this->mComment=&$comment;
+			return COMMENT_FRAME_VIEW_INPUT;
+		}
+		
+		return COMMENT_FRAME_VIEW_ERROR;
+	}
+	
+	function execute()
+	{
+		$id = intval($_REQUEST["id"]);
+		$deleteAllFlag = intval($_REQUEST["DeleteAll"])==1 ? true : false;
+
+		//
+		// TODO We check a permission that user can delete this comment.
+		//
+
+		$parameters=array('Id'=>$id);
+		if($deleteAllFlag) {
+			$result=&$this->mClient->call("Delete",$parameters);
+		}
+		else {
+			$result=&$this->mClient->call("DeleteAll",$parameters);
+		}
+		
+		return COMMENT_FRAME_VIEW_SUCCESS;
+	}
+	
+	function executeViewSuccess(&$controller,&$xoopsUser,&$renderSystem)
+	{
+		XCube_Utils::redirectHeader(XOOPS_URL,1,"delete!");
+	}
+
+	function executeViewInput(&$controller,&$xoopsUser,&$renderSystem)
+	{
+		$renderSystem->setTemplateName("comment_delete_input.html");
+		$renderSystem->setAttribute("comment",$this->mComment);
+	}
+}
+
 ?>
\ No newline at end of file


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