本文整理匯總了PHP中Submission::addReview方法的典型用法代碼示例。如果您正苦於以下問題:PHP Submission::addReview方法的具體用法?PHP Submission::addReview怎麽用?PHP Submission::addReview使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Submission
的用法示例。
在下文中一共展示了Submission::addReview方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: Review
$data->contribution1 = length_one(test_input(test_num($_POST["contribution1"])));
$data->contribution2 = length_one(test_input(test_num($_POST["contribution2"])));
$data->contribution3 = length_one(test_input(test_num($_POST["contribution3"])));
$data->s3 = length_three(test_input(test_num($_POST["s3"])));
$data->presentation1 = length_one(test_input(test_num($_POST["presentation1"])));
$data->presentation2 = length_one(test_input(test_num($_POST["presentation2"])));
$data->presentation3 = length_one(test_input(test_num($_POST["presentation3"])));
$data->presentation4 = length_one(test_input(test_num($_POST["presentation4"])));
$data->presentation5 = length_one(test_input(test_num($_POST["presentation5"])));
$data->s4 = length_three(test_input(test_num($_POST["s4"])));
$data->s5 = length_three(test_input(test_num($_POST["s5"])));
$data->s6 = length_one(test_input(test_grade($_POST["s6"])));
$data->impression = input_length(test_input($_POST["impression"]));
$data->rname = input_length(test_input($_POST["rname"]));
$data->date = length_date(test_input($_POST["date"]));
$data->feedback = input_length(test_input($_POST["feedback"]));
// Create the review
$review = Review::createReview($data);
// Add it to the submission
$submission->addReview($review->id);
echo '<h3>Success!</h3><a href="?"><button class="btn btn-success">Go back</button></a>';
} else {
$data;
$latestID = $submission->getLatestReview($user->id);
// If user already has a review
if ($latestID > -1) {
$review = new Review($latestID);
$data = $review->data;
}
include 'includes/content/dp_thesis-eval_supervisor.php';
}