本文整理匯總了PHP中Tsugi\Core\LTIX::gradeSendDueDate方法的典型用法代碼示例。如果您正苦於以下問題:PHP LTIX::gradeSendDueDate方法的具體用法?PHP LTIX::gradeSendDueDate怎麽用?PHP LTIX::gradeSendDueDate使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Tsugi\Core\LTIX
的用法示例。
在下文中一共展示了LTIX::gradeSendDueDate方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: header
}
$oldgrade = $RESULT->grade;
if (isset($_POST['sum']) && isset($_POST['code'])) {
$RESULT->setJsonKey('code', $_POST['code']);
if ($_POST['sum'] != $actual_sum) {
$_SESSION['error'] = "Your sum did not match";
header('Location: ' . addSession('index.php'));
return;
}
$val = validate($sanity, $_POST['code']);
if (is_string($val)) {
$_SESSION['error'] = $val;
header('Location: ' . addSession('index.php'));
return;
}
LTIX::gradeSendDueDate(1.0, $oldgrade, $dueDate);
// Redirect to ourself
header('Location: ' . addSession('index.php'));
return;
}
// echo($goodsha);
if ($LINK->grade > 0) {
echo '<p class="alert alert-info">Your current grade on this assignment is: ' . $LINK->grade * 100.0 . '%</p>' . "\n";
}
if ($dueDate->message) {
echo '<p style="color:red;">' . $dueDate->message . '</p>' . "\n";
}
?>
<p>
<b>Finding Numbers in a Haystack</b>
<p>
示例2: foreach
$good = 0;
foreach ($headers as $key => $val) {
if (!in_array($key, $fields)) {
continue;
}
$postkey = mapdown($key);
$count++;
if (isset($_POST[$postkey]) && mapdown($_POST[$postkey]) == mapdown($val)) {
$good++;
}
}
if ($count == 0) {
die("No expected fields found");
}
$gradetosend = 1.0 * $good / $count;
LTIX::gradeSendDueDate($gradetosend, $oldgrade, $dueDate);
header('Location: ' . addSession('index.php'));
return;
}
if ($LINK->grade > 0) {
echo '<p class="alert alert-info">Your current grade on this assignment is: ' . $LINK->grade * 100.0 . '%</p>' . "\n";
}
if ($dueDate->message) {
echo '<p style="color:red;">' . $dueDate->message . '</p>' . "\n";
}
$postdata = isset($_SESSION['postdata']) ? $_SESSION['postdata'] : array();
unset($_SESSION['postdata']);
?>
<p>
<b>Exploring the HyperText Transport Protocol</b>
<p>