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


PHP backupbuddy_core::read_backward_line方法代碼示例

本文整理匯總了PHP中backupbuddy_core::read_backward_line方法的典型用法代碼示例。如果您正苦於以下問題:PHP backupbuddy_core::read_backward_line方法的具體用法?PHP backupbuddy_core::read_backward_line怎麽用?PHP backupbuddy_core::read_backward_line使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在backupbuddy_core的用法示例。


在下文中一共展示了backupbuddy_core::read_backward_line方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: _test_recent_live_send_fails

 private static function _test_recent_live_send_fails()
 {
     $troubleshooting = true;
     // Tell _remote_sends.php to run in troubleshooting/text mode.
     require pb_backupbuddy::plugin_path() . '/controllers/pages/server_info/_remote_sends.php';
     // Populates $sends.
     self::$_results['recent_live_send_fails'] = $sends;
     foreach (self::$_results['recent_live_send_fails'] as $key => &$send) {
         // Only include Live sends.
         if ('live' != $send['type']) {
             unset(self::$_results['recent_live_send_fails'][$key]);
             continue;
         }
         // Only include FAILED sends.
         if (true !== $send['failed']) {
             unset(self::$_results['recent_live_send_fails'][$key]);
             continue;
         }
         // If error message, set as highlight.
         if ('' != $send['error']) {
             self::$_results['highlights'][] = array('error' => 'File send Error #4389844959:' . $send['error'], 'send_details' => $send);
         }
         if (file_exists($send['log_file'])) {
             $send['log_tail'] = backupbuddy_core::read_backward_line($send['log_file'], self::$_settings['send_fail_status_log_recent_lines']);
         } else {
             self::$_results['extraneous_log_tail'] = '**Log file `' . $send['log_file'] . '` not found.**';
         }
     }
     if (count(self::$_results['recent_live_send_fails']) > 0) {
         self::$_results['highlights'][] = count(self::$_results['recent_live_send_fails']) . ' total files pending send before Snapshot can be made.';
     }
 }
開發者ID:arobbins,項目名稱:spellestate,代碼行數:32,代碼來源:_troubleshooting.php


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