本文整理汇总了PHP中Tsugi\Core\LTIX::gradeGet方法的典型用法代码示例。如果您正苦于以下问题:PHP LTIX::gradeGet方法的具体用法?PHP LTIX::gradeGet怎么用?PHP LTIX::gradeGet使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Tsugi\Core\LTIX
的用法示例。
在下文中一共展示了LTIX::gradeGet方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: unset
unset($newrow['server_grade']);
unset($newrow['sourcedid']);
unset($newrow['service']);
$newrow['note'] = '';
if ($row['grade'] <= 0.0) {
$newrows[] = $newrow;
continue;
}
$diff = $row['diff_in_seconds'];
// $newrow['note'] = $row['retrieved_at'].' diff='.$diff.' '.
// $row['server_grade'].' '.$row['sourcedid'].' '.$row['service'];
$RETRIEVE_INTERVAL = 14400;
// Four Hours
$newnote['note'] = " " + $diff;
if (!isset($row['retrieved_at']) || $row['retrieved_at'] < $row['updated_at'] || $diff > $RETRIEVE_INTERVAL) {
$server_grade = LTIX::gradeGet($row);
if (is_string($server_grade)) {
echo '<pre class="alert alert-danger">' . "\n";
$msg = "result_id=" . $row['result_id'] . "\n" . "grade=" . $row['grade'] . " updated=" . $row['updated_at'] . "\n" . "server_grade=" . $row['server_grade'] . " retrieved=" . $row['retrieved_at'] . "\n" . "error=" . $server_grade;
echo "Problem Retrieving Grade: " . session_safe_id() . " " . $msg;
error_log("Problem Retrieving Grade: " . session_id() . "\n" . $msg . "\n" . "service=" . $row['service'] . " sourcedid=" . $row['sourcedid']);
echo "\nProblem Retrieving Grade - Please take a screen shot of this page.\n";
echo "</pre>\n";
$newrow['note'] = "Problem Retrieving Server Grade: " . $server_grade;
$newrows[] = $newrow;
continue;
} else {
if ($server_grade > 0.0) {
$newrow['note'] .= ' Server grade retrieved.';
} else {
$newrow['note'] .= ' Server grade checked.';