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


PHP pb_backupbuddy::add_cron方法代碼示例

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


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

示例1: backupbuddy_clean_transients

pb_backupbuddy::add_cron('process_backup', 10, 1);
// Normal (manual) backup. Normal backups use cron system for scheduling each step when in modern mode. Classic mode skips this and runs all in one PHP process.
pb_backupbuddy::add_cron('final_cleanup', 10, 1);
// Cleanup after backup.
pb_backupbuddy::add_cron('remote_send', 10, 5);
// Manual remote destination sending.
pb_backupbuddy::add_cron('destination_send', 10, 3);
// Manual remote destination sending.
// Remote destination copying. Eventually combine into one function to pass to individual remote destination classes to process.
pb_backupbuddy::add_cron('process_s3_copy', 10, 6);
pb_backupbuddy::add_cron('process_remote_copy', 10, 3);
pb_backupbuddy::add_cron('process_dropbox_copy', 10, 2);
pb_backupbuddy::add_cron('process_rackspace_copy', 10, 5);
pb_backupbuddy::add_cron('process_ftp_copy', 10, 7);
pb_backupbuddy::add_cron('housekeeping', 10, 0);
pb_backupbuddy::add_cron('process_destination_copy', 10, 3);
// New copy mechanism.
/********** FILTERS (global) **********/
pb_backupbuddy::add_filter('cron_schedules');
// Add schedule periods such as bimonthly, etc into cron. By default passes 1 param at priority 10.
if ('1' == pb_backupbuddy::$options['disable_https_local_ssl_verify']) {
    $disable_local_ssl_verify_anon_function = create_function('', 'return false;');
    add_filter('https_local_ssl_verify', $disable_local_ssl_verify_anon_function, 100);
}
/********** OTHER (global) **********/
// WP-CLI tool support for command line access to BackupBuddy. http://wp-cli.org/
if (defined('WP_CLI') && WP_CLI) {
    include pb_backupbuddy::plugin_path() . '/classes/wp-cli.php';
}
// TODO: In the future when WordPress handles this for us, remove on WP versions where it is no longer needed.
function backupbuddy_clean_transients()
開發者ID:FelixNong1990,項目名稱:andy,代碼行數:31,代碼來源:init_global.php

示例2: unset

}
if ($options !== false) {
    // If options is not false then we need to upgrade.
    pb_backupbuddy::status('details', 'Migrating data structure. 2.x data discovered.');
    require_once pb_backupbuddy::plugin_path() . '/controllers/activation.php';
}
unset($options);
/* END HANDLING DATA STRUCTURE UPGRADE */
/********** ACTIONS (global) **********/
pb_backupbuddy::add_action(array('pb_backupbuddy-cron_scheduled_backup', 'process_scheduled_backup'), 10, 5);
// Scheduled backup.
/********** AJAX (global) **********/
/********** CRON (global) **********/
pb_backupbuddy::add_cron('process_backup', 10, 1);
// Normal (manual) backup. Normal backups use cron system for scheduling each step when in modern mode. Classic mode skips this and runs all in one PHP process.
pb_backupbuddy::add_cron('final_cleanup', 10, 1);
// Cleanup after backup.
pb_backupbuddy::add_cron('remote_send', 10, 4);
// Manual remote destination sending.
pb_backupbuddy::add_cron('destination_send', 10, 2);
// Manual remote destination sending.
// Remote destination copying. Eventually combine into one function to pass to individual remote destination classes to process.
pb_backupbuddy::add_cron('process_s3_copy', 10, 5);
pb_backupbuddy::add_cron('process_remote_copy', 10, 3);
pb_backupbuddy::add_cron('process_dropbox_copy', 10, 2);
pb_backupbuddy::add_cron('process_rackspace_copy', 10, 5);
pb_backupbuddy::add_cron('process_ftp_copy', 10, 5);
/********** FILTERS (global) **********/
pb_backupbuddy::add_filter('cron_schedules', 10, 0);
// Add schedule periods such as bimonthly, etc into cron.
/********** WIDGETS (global) **********/
開發者ID:CherylMuniz,項目名稱:fashion,代碼行數:31,代碼來源:init_global.php

示例3: die

    @header("Cache-Control: no-store, no-cache, must-revalidate");
    @header("Cache-Control: post-check=0, pre-check=0", false);
    @header("Pragma: no-cache");
    // Process.
    require_once pb_backupbuddy::plugin_path() . '/classes/core.php';
    backupbuddy_core::process_backup(pb_backupbuddy::_POST('backupbuddy_serial'));
    die('`' . microtime(true) . '`');
}
// Make localization happen.
if (!defined('PB_STANDALONE') && '1' != pb_backupbuddy::$options['disable_localization']) {
    load_plugin_textdomain('it-l10n-backupbuddy', false, dirname(plugin_basename(__FILE__)) . '/lang');
}
/********** ACTIONS (global) **********/
/********** AJAX (global) **********/
/********** CRON (global) **********/
pb_backupbuddy::add_cron('cron', backupbuddy_constants::DEFAULT_CRON_PRIORITY, 3);
// Master CRON handler as of v6.4.0.9. Pass all cron functionality through this. Params: cron_method, args, reschedulecount(optional).
/********** FILTERS (global) **********/
pb_backupbuddy::add_filter('cron_schedules');
// Add schedule periods such as bimonthly, etc into cron. By default passes 1 param at priority 10.
if ('1' == pb_backupbuddy::$options['disable_https_local_ssl_verify']) {
    $disable_local_ssl_verify_anon_function = create_function('', 'return false;');
    add_filter('https_local_ssl_verify', $disable_local_ssl_verify_anon_function, 100);
}
/********** OTHER (global) **********/
// WP-CLI tool support for command line access to BackupBuddy. http://wp-cli.org/
if (defined('WP_CLI') && WP_CLI) {
    include pb_backupbuddy::plugin_path() . '/classes/wp-cli.php';
}
/*
add_filter( 'cron_request', 'backupbuddy_spoof_cron_agent' );
開發者ID:Brandonsmith23,項目名稱:prodgyr,代碼行數:31,代碼來源:init_global.php

示例4: pb_backupbuddy_clean_transients

/********** CRON (global) **********/
pb_backupbuddy::add_cron('process_backup', 10, 1);
// Normal (manual) backup. Normal backups use cron system for scheduling each step when in modern mode. Classic mode skips this and runs all in one PHP process.
pb_backupbuddy::add_cron('final_cleanup', 10, 1);
// Cleanup after backup.
pb_backupbuddy::add_cron('remote_send', 10, 5);
// Manual remote destination sending.
pb_backupbuddy::add_cron('destination_send', 10, 2);
// Manual remote destination sending.
// Remote destination copying. Eventually combine into one function to pass to individual remote destination classes to process.
pb_backupbuddy::add_cron('process_s3_copy', 10, 6);
pb_backupbuddy::add_cron('process_remote_copy', 10, 3);
pb_backupbuddy::add_cron('process_dropbox_copy', 10, 2);
pb_backupbuddy::add_cron('process_rackspace_copy', 10, 5);
pb_backupbuddy::add_cron('process_ftp_copy', 10, 7);
pb_backupbuddy::add_cron('housekeeping', 10, 0);
/********** FILTERS (global) **********/
pb_backupbuddy::add_filter('cron_schedules', 10, 0);
// Add schedule periods such as bimonthly, etc into cron.
if ('1' == pb_backupbuddy::$options['disable_https_local_ssl_verify']) {
    $disable_local_ssl_verify_anon_function = create_function('', 'return false;');
    add_filter('https_local_ssl_verify', $disable_local_ssl_verify_anon_function, 100);
}
/********** WIDGETS (global) **********/
/********** HANDLE DELETING EXPIRED TRANSIENTS **********/
// TODO: In the future when WordPress handles this for us, remove on WP versions where it is no longer needed.
function pb_backupbuddy_clean_transients()
{
    pb_backupbuddy_transient_delete(true);
}
function pb_backupbuddy_clear_transients()
開發者ID:mariakhair,項目名稱:bootstrap,代碼行數:31,代碼來源:init_global.php


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