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