当前位置: 首页>>代码示例>>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;未经允许,请勿转载。