當前位置: 首頁>>代碼示例>>PHP>>正文


PHP LTIX::gradeGet方法代碼示例

本文整理匯總了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.';
開發者ID:ixtel,項目名稱:tsugi,代碼行數:31,代碼來源:index.php


注:本文中的Tsugi\Core\LTIX::gradeGet方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。