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


PHP Review::record_general_comments方法代碼示例

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


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

示例1: close_window

*/
$bgcolor = $fgcolor = $textsize = $marks_color = $themecolor = $labelcolor = $font = $unanswered_color = $dismiss_color = '';
$propertyObj->set_paper_colour_scheme($userObject, $bgcolor, $fgcolor, $textsize, $marks_color, $themecolor, $labelcolor, $font, $unanswered_color, $dismiss_color);
$paperID = $propertyObj->get_property_id();
$paper_type = $propertyObj->get_paper_type();
if ($userObject->has_role('External Examiner')) {
    $review_type = 'External';
    $review_deadline = strtotime($propertyObj->get_external_review_deadline());
} else {
    $review_type = 'Internal';
    $review_deadline = strtotime($propertyObj->get_internal_review_deadline());
}
$userid = $userObject->get_user_ID();
$review = new Review($paperID, $userid, $review_type, $mysqli);
if (isset($_POST['close'])) {
    $review->record_general_comments($_POST['paper_comments'], false);
    echo close_window();
    exit;
} elseif (isset($_POST['finish'])) {
    $review->record_general_comments($_POST['paper_comments'], true);
    echo close_window();
    exit;
}
function close_window()
{
    $html = "<html>\n<head>\n<title>Rog&#333;</title>\n</head>\n<body onload=\"window.close();\"></body>\n</html>";
    return $html;
}
?>
<html>
<head>
開發者ID:vinod-co,項目名稱:centa,代碼行數:31,代碼來源:finish.php


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