本文整理汇总了PHP中Feedback::Save方法的典型用法代码示例。如果您正苦于以下问题:PHP Feedback::Save方法的具体用法?PHP Feedback::Save怎么用?PHP Feedback::Save使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Feedback
的用法示例。
在下文中一共展示了Feedback::Save方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: SaveRateResult
function SaveRateResult($_result)
{
if (Feedback::IsResourceRating($this->Id)) {
return;
}
$fb = new Feedback(getId(32));
$fb->ResourceId = $this->Id;
$fb->CriteriaList["hf"] = intval($_result);
$fb->Save();
}
示例2: foreach
Visitor::CloseAllOverlays($chat->UserId);
} else {
if ($ticket != null) {
$feedback->UserId = $ticket->SenderUserId;
$feedback->TicketId = $ticket->Id;
if (!empty($ticket->Editor)) {
$feedback->OperatorId = $ticket->Editor->Editor;
$feedback->GroupId = $ticket->Editor->GroupId;
}
$feedback->UserData = UserData::FromTicketMessage($ticket->Messages[0]);
}
}
$isSpam = !empty(Server::$Configuration->File["gl_sfc"]) && Visitor::CreateSPAMFilter($userid, false);
if (!$isSpam) {
$feedback->AddCriteriaDataFromServerInput();
$feedback->Save();
} else {
Logging::GeneralLog("Feedback matches SPAM filter rule.");
}
$fb_html = str_replace("<!--sub_title-->", "<br>" . LocalizationManager::$TranslationStrings["client_feedback_success"] . "<script>parent.parent.lz_chat_feedback_result();</script>", $fb_html);
$fb_html = str_replace("<!--title-->", "<br><br><br>" . LocalizationManager::$TranslationStrings["client_thank_you"], $fb_html);
$fb_html = str_replace("<!--visible-->", "none", $fb_html);
} else {
$inputs_html = $js_id_list = "";
foreach (Server::$Configuration->Database["gl_fb"] as $id => $criteria) {
if (!empty($js_id_list)) {
$js_id_list .= ",";
}
$js_id_list .= "'" . $id . "'";
$inputs_html .= $criteria->GetHTML();
}