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