當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Comments::postComment方法代碼示例

本文整理匯總了PHP中Comments::postComment方法的典型用法代碼示例。如果您正苦於以下問題:PHP Comments::postComment方法的具體用法?PHP Comments::postComment怎麽用?PHP Comments::postComment使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Comments的用法示例。


在下文中一共展示了Comments::postComment方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: Comments

                    $check = $obj->login($_POST);
                    break;
                case 'verify':
                    $check = $obj->verifyUser($_POST);
                    break;
                default:
                    $check = false;
                    break;
            }
            $header = $check === true ? 'Location: /admin/' : "Location: /{$obj->url0}/error/";
        }
    }
} else {
    if ($_POST['action'] == 'cmnt_post') {
        $cmnt = new Comments();
        $header = $cmnt->postComment();
    } else {
        if ($_GET['action'] == 'cmnt_delete') {
            $cmnt = new Comments();
            $header = $cmnt->deleteComment($_GET['bid'], $_GET['cmntid']);
        } else {
            if ($_GET['action'] == 'logout') {
                $admin = new Admin();
                $check = $admin->logout();
                $header = $check === true ? 'Location: /' : 'Location: /admin/error/';
            } else {
                $header = "Location: /";
            }
        }
    }
}
開發者ID:RobMacKay,項目名稱:Ennui-CMS,代碼行數:31,代碼來源:update.inc.php

示例2: post_action

 public function post_action($id, $type, $backPage)
 {
     Comments::postComment($id, $type, $backPage);
 }
開發者ID:radex,項目名稱:Watermelon,代碼行數:4,代碼來源:comments.controller.php

示例3: strftime

<?php

include_once "topmenu.php";
include_once "properties/serverproperties.php";
include_once 'classes/Comments.php';
$isAjaxPage = true;
$jsExec = '';
$receiverID = $_POST['receiver_id'];
$senderID = $_POST['sender_id'];
$content = $_POST['content'];
$time = strftime('%c');
if (Comments::postComment($senderID, $receiverID, $content, $time)) {
} else {
}
?>

<div style="display: none;">
	<div id="inline1" style=""></div>
</div>

<a class="inlinecontent abshide" href="#inline1"> </a>

開發者ID:ng2k12,項目名稱:MercInc,代碼行數:21,代碼來源:ajaxComents.php


注:本文中的Comments::postComment方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。