本文整理汇总了PHP中CTicket::DeleteMessage方法的典型用法代码示例。如果您正苦于以下问题:PHP CTicket::DeleteMessage方法的具体用法?PHP CTicket::DeleteMessage怎么用?PHP CTicket::DeleteMessage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CTicket
的用法示例。
在下文中一共展示了CTicket::DeleteMessage方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: intval
***************************************************************************/
$ID = intval($ID);
if ($ID <= 0) {
$bOwner = "Y";
} else {
$bOwner = CTicket::IsOwner($ID) ? "Y" : "N";
}
if ($bDemo == "Y" && $bOwner == "Y") {
$bSupportClient = "Y";
$bDemo = "N";
}
$TICKET_LIST_URL = strlen($TICKET_LIST_URL) > 0 ? CUtil::AddSlashes(htmlspecialcharsbx((substr($TICKET_LIST_URL, 0, 4) == 'http' ? '' : '/') . $TICKET_LIST_URL)) : "ticket_list.php";
$TICKET_EDIT_URL = strlen($TICKET_EDIT_URL) > 0 ? CUtil::AddSlashes(htmlspecialcharsbx((substr($TICKET_EDIT_URL, 0, 4) == 'http' ? '' : '/') . $TICKET_EDIT_URL)) : "ticket_edit.php";
$TICKET_MESSAGE_EDIT_URL = strlen($TICKET_MESSAGE_EDIT_URL) > 0 ? CUtil::AddSlashes(htmlspecialcharsbx((substr($TICKET_MESSAGE_EDIT_URL, 0, 4) == 'http' ? '' : '/') . $TICKET_MESSAGE_EDIT_URL)) : "ticket_message_edit.php";
if (intval($mdel_id) > 0 && check_bitrix_sessid()) {
CTicket::DeleteMessage($mdel_id, "Y");
LocalRedirect($TICKET_EDIT_URL . "?ID=" . $ID . "&lang=" . LANGUAGE_ID);
}
if (strlen($action) > 0 && check_bitrix_sessid()) {
switch ($action) {
case "close":
CTicket::SetTicket(array("CLOSE" => "Y"), $ID);
LocalRedirect($TICKET_EDIT_URL . "?ID=" . $ID . "&lang=" . LANGUAGE_ID);
break;
case "open":
CTicket::SetTicket(array("CLOSE" => "N"), $ID);
LocalRedirect($TICKET_EDIT_URL . "?ID=" . $ID . "&lang=" . LANGUAGE_ID);
break;
case "unmark_spam":
CTicket::UnMarkAsSpam($ID);
LocalRedirect($TICKET_EDIT_URL . "?ID=" . $ID . "&lang=" . LANGUAGE_ID);