本文整理汇总了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>