本文整理匯總了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ō</title>\n</head>\n<body onload=\"window.close();\"></body>\n</html>";
return $html;
}
?>
<html>
<head>