本文整理匯總了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.';