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


PHP pb_backupbuddy::add_ajax方法代碼示例

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


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

示例1: size

pb_backupbuddy::add_ajax( 'destination_picker' ); // Remote destination picker.
pb_backupbuddy::add_ajax( 'hash' ); // Obtain MD5 hash of a backup file.
pb_backupbuddy::add_ajax( 'migration_picker' ); // Remote destination picker.
pb_backupbuddy::add_ajax( 'remote_send' ); // Remote destination picker.
pb_backupbuddy::add_ajax( 'migrate_status' ); // Magic migration status polling.
pb_backupbuddy::add_ajax( 'ajax_controller_callback_function' ); // Tell WordPress about this AJAX callback.
pb_backupbuddy::add_ajax( 'icicle' ); // Server info page icicle.
pb_backupbuddy::add_ajax( 'remote_test' ); // Remote destination testing.
pb_backupbuddy::add_ajax( 'refresh_site_size' ); // Server info page site size update.
pb_backupbuddy::add_ajax( 'refresh_site_size_excluded' ); // Server info page site size (sans exclusions) update.
pb_backupbuddy::add_ajax( 'refresh_database_size' ); // Server info page database size update.
pb_backupbuddy::add_ajax( 'refresh_database_size_excluded' ); // Server info page site size (sans exclusions) update.
pb_backupbuddy::add_ajax( 'phpinfo' ); // Server info page extended PHPinfo thickbox.
pb_backupbuddy::add_ajax( 'exclude_tree' ); // Directory exclusions picker for settings page.
pb_backupbuddy::add_ajax( 'download_archive' ); // Directory exclusions picker for settings page.
pb_backupbuddy::add_ajax( 'set_backup_note' ); // Used for setting a note on a backup archive in the backup listing.



/********** DASHBOARD (admin) **********/



// Display stats in Dashboard.
if ( ( !is_multisite() ) || ( is_multisite() && is_network_admin() ) ) { // Only show if standalon OR in main network admin.
	pb_backupbuddy::add_dashboard_widget( 'stats', 'BackupBuddy', 'godmode' );
}

/********** FILTERS (admin) **********/
pb_backupbuddy::add_filter( 'plugin_row_meta', 10, 2 );
開發者ID:verbazend,項目名稱:AWFA,代碼行數:30,代碼來源:init_admin.php

示例2: array

    backupbuddy_core::schedule_event(time() + 60 * 60 * 2, 'daily', pb_backupbuddy::cron_tag('housekeeping'), array());
    // Add schedule.
}
/********** ACTIONS (admin) **********/
// Set up reminders if enabled.
if (pb_backupbuddy::$options['backup_reminders'] == '1') {
    pb_backupbuddy::add_action(array('load-update-core.php', 'wp_update_backup_reminder'));
    pb_backupbuddy::add_action(array('post_updated_messages', 'content_editor_backup_reminder_on_update'));
}
// Display warning to network activate if running in normal mode on a MultiSite Network.
if (is_multisite() && !backupbuddy_core::is_network_activated()) {
    pb_backupbuddy::add_action(array('all_admin_notices', 'multisite_network_warning'));
    // BB should be network activated while on Multisite.
}
/********** AJAX (admin) **********/
pb_backupbuddy::add_ajax('backupbuddy');
// New AJAX wrapper to begin passing all AJAX through this single call to reduce number of registered hooks. POST or GET the var function containing the function.php file to run within controllers/ajax.
//pb_backupbuddy::add_ajax( 'ajax_controller_callback_function' ); // Tell WordPress about this AJAX callback.
// Register BackupBuddy API. As of BackupBuddy v5.0. Access credentials will be checked within callback.
add_action('wp_ajax_backupbuddy_api', array(pb_backupbuddy::$_ajax, 'api'));
add_action('wp_ajax_nopriv_backupbuddy_api', array(pb_backupbuddy::$_ajax, 'api'));
/********** DASHBOARD (admin) **********/
// Display stats in Dashboard.
if (!is_multisite() || is_multisite() && is_network_admin()) {
    // Only show if standalon OR in main network admin.
    pb_backupbuddy::add_dashboard_widget('stats', 'BackupBuddy v' . pb_backupbuddy::settings('version'), 'godmode');
}
/********** FILTERS (admin) **********/
pb_backupbuddy::add_filter('plugin_row_meta', 10, 2);
/********** PAGES (admin) **********/
$icon = '';
開發者ID:khuonggau,項目名稱:pixel,代碼行數:31,代碼來源:init_admin.php

示例3: array

// Quick Start form modal.
pb_backupbuddy::add_ajax('profile_settings');
// Settings page backup profile editing.
pb_backupbuddy::add_ajax('email_error_test');
// Test email error notification.
pb_backupbuddy::add_ajax('remotesend_details');
// Display backup integrity status.
pb_backupbuddy::add_ajax('remotesend_abort');
// Abort an in-process remote destination send.
pb_backupbuddy::add_ajax('destination_ftp_pathpicker');
// FTP destination path picker.
pb_backupbuddy::add_ajax('rollback');
// Database roll back feature.
pb_backupbuddy::add_ajax('deploy');
// Database roll back feature.
pb_backupbuddy::add_ajax('getMainLog');
// Output main log file text.
// Register BackupBuddy API. As of BackupBuddy v5.0. Access credentials will be checked within callback.
add_action('wp_ajax_backupbuddy_api', array(pb_backupbuddy::$_ajax, 'api'));
add_action('wp_ajax_nopriv_backupbuddy_api', array(pb_backupbuddy::$_ajax, 'api'));
/********** DASHBOARD (admin) **********/
// Display stats in Dashboard.
//if ( pb_backupbuddy::$options['dashboard_stats'] == '1' ) {
if (!is_multisite() || is_multisite() && is_network_admin()) {
    // Only show if standalon OR in main network admin.
    pb_backupbuddy::add_dashboard_widget('stats', 'BackupBuddy v' . pb_backupbuddy::settings('version'), 'godmode');
}
//}
/********** FILTERS (admin) **********/
pb_backupbuddy::add_filter('plugin_row_meta', 10, 2);
/********** PAGES (admin) **********/
開發者ID:adrianjonmiller,項目名稱:vadsupplies,代碼行數:31,代碼來源:init_admin.php

示例4:

//pb_backupbuddy::add_ajax( 'quickstart_stash_test' ); // Getting Started Quick Start Stash auth testing.
pb_backupbuddy::add_ajax('quickstart_skip');
// Quick Start form saving.
pb_backupbuddy::add_ajax('quickstart_form');
// Quick Start form saving.
pb_backupbuddy::add_ajax('quickstart');
// Quick Start form modal.
pb_backupbuddy::add_ajax('profile_settings');
// Settings page backup profile editing.
pb_backupbuddy::add_ajax('email_error_test');
// Test email error notification.
pb_backupbuddy::add_ajax('remotesend_details');
// Display backup integrity status.
pb_backupbuddy::add_ajax('remotesend_abort');
// Abort an in-process remote destination send.
pb_backupbuddy::add_ajax('destination_ftp_pathpicker');
// FTP destination path picker.
/********** DASHBOARD (admin) **********/
// Display stats in Dashboard.
//if ( pb_backupbuddy::$options['dashboard_stats'] == '1' ) {
if (!is_multisite() || is_multisite() && is_network_admin()) {
    // Only show if standalon OR in main network admin.
    pb_backupbuddy::add_dashboard_widget('stats', 'BackupBuddy', 'godmode');
}
//}
/********** FILTERS (admin) **********/
pb_backupbuddy::add_filter('plugin_row_meta', 10, 2);
/********** PAGES (admin) **********/
$icon = '';
if (is_multisite() && backupbuddy_core::is_network_activated() && !defined('PB_DEMO_MODE')) {
    // Multisite installation.
開發者ID:netfor,項目名稱:nextrading,代碼行數:31,代碼來源:init_admin.php

示例5:

// Quick Start form saving.
pb_backupbuddy::add_ajax('quickstart_form');
// Quick Start form saving.
pb_backupbuddy::add_ajax('quickstart');
// Quick Start form modal.
pb_backupbuddy::add_ajax('profile_settings');
// Settings page backup profile editing.
pb_backupbuddy::add_ajax('email_error_test');
// Test email error notification.
pb_backupbuddy::add_ajax('remotesend_details');
// Display backup integrity status.
pb_backupbuddy::add_ajax('remotesend_abort');
// Abort an in-process remote destination send.
pb_backupbuddy::add_ajax('destination_ftp_pathpicker');
// FTP destination path picker.
pb_backupbuddy::add_ajax('rollback');
// Database roll back feature.
/********** DASHBOARD (admin) **********/
// Display stats in Dashboard.
//if ( pb_backupbuddy::$options['dashboard_stats'] == '1' ) {
if (!is_multisite() || is_multisite() && is_network_admin()) {
    // Only show if standalon OR in main network admin.
    pb_backupbuddy::add_dashboard_widget('stats', 'BackupBuddy v' . pb_backupbuddy::settings('version'), 'godmode');
}
//}
/********** FILTERS (admin) **********/
pb_backupbuddy::add_filter('plugin_row_meta', 10, 2);
/********** PAGES (admin) **********/
$icon = '';
if (is_multisite() && backupbuddy_core::is_network_activated() && !defined('PB_DEMO_MODE')) {
    // Multisite installation.
開發者ID:serker72,項目名稱:T3S,代碼行數:31,代碼來源:init_admin.php

示例6:

// Display backup step status in thickbox for recent backups section.
pb_backupbuddy::add_ajax('view_status_log');
// Display status log in thickbox for recent backups section.
pb_backupbuddy::add_ajax('importbuddy');
// ImportBuddy download link.
pb_backupbuddy::add_ajax('repairbuddy');
// RepairBuddy download link.
pb_backupbuddy::add_ajax('hash');
// Obtain MD5 hash of a backup file.
pb_backupbuddy::add_ajax('ajax_controller_callback_function');
// Tell WordPress about this AJAX callback.
pb_backupbuddy::add_ajax('disalert');
// Dismissable alert saving. Currently framework does NOT auto-load this AJAX ability to save disalerts.
pb_backupbuddy::add_ajax('importexport_settings');
// Popup thickbox for importing and exporting settings.
pb_backupbuddy::add_ajax('file_tree');
// Display file listing of zip.
/********** DASHBOARD (admin) **********/
// Display stats in Dashboard.
//if ( pb_backupbuddy::$options['dashboard_stats'] == '1' ) {
if (!is_multisite() || is_multisite() && is_network_admin()) {
    // Only show if standalon OR in main network admin.
    pb_backupbuddy::add_dashboard_widget('stats', 'BackupBuddy', 'godmode');
}
//}
/********** FILTERS (admin) **********/
pb_backupbuddy::add_filter('plugin_row_meta', 10, 2);
/********** PAGES (admin) **********/
if (is_multisite() && pb_backupbuddy::$classes['core']->is_network_activated() && !defined('PB_DEMO_MODE')) {
    // Multisite installation.
    if (defined('PB_BACKUPBUDDY_MULTISITE_EXPERIMENT') && PB_BACKUPBUDDY_MULTISITE_EXPERIMENT == TRUE) {
開發者ID:jimlongo56,項目名稱:bhouse,代碼行數:31,代碼來源:init_admin.php

示例7:

pb_backupbuddy::add_ajax('disalert');
// Dismissable alert saving. Currently framework does NOT auto-load this AJAX ability to save disalerts.
pb_backupbuddy::add_ajax('importexport_settings');
// Popup thickbox for importing and exporting settings.
pb_backupbuddy::add_ajax('file_tree');
// Display file listing of zip.
pb_backupbuddy::add_ajax('restore_file_view');
// File viewer (view content only) in the file restore page.
pb_backupbuddy::add_ajax('restore_file_restore');
// File restorer (actual unzip/restore) in the file restore page.
//pb_backupbuddy::add_ajax( 'quickstart_stash_test' ); // Getting Started Quick Start Stash auth testing.
pb_backupbuddy::add_ajax('quickstart_form');
// Getting Started Quick Start form saving.
pb_backupbuddy::add_ajax('backup_profile_settings');
// Settings page backup profile editing.
pb_backupbuddy::add_ajax('email_error_test');
// Test email error notification.
/********** DASHBOARD (admin) **********/
// Display stats in Dashboard.
//if ( pb_backupbuddy::$options['dashboard_stats'] == '1' ) {
if (!is_multisite() || is_multisite() && is_network_admin()) {
    // Only show if standalon OR in main network admin.
    pb_backupbuddy::add_dashboard_widget('stats', 'BackupBuddy', 'godmode');
}
//}
/********** FILTERS (admin) **********/
pb_backupbuddy::add_filter('plugin_row_meta', 10, 2);
/********** PAGES (admin) **********/
if (is_multisite() && pb_backupbuddy::$classes['core']->is_network_activated() && !defined('PB_DEMO_MODE')) {
    // Multisite installation.
    if (defined('PB_BACKUPBUDDY_MULTISITE_EXPERIMENT') && PB_BACKUPBUDDY_MULTISITE_EXPERIMENT == TRUE) {
開發者ID:mariakhair,項目名稱:bootstrap,代碼行數:31,代碼來源:init_admin.php

示例8: array

// Server info page icicle.
pb_backupbuddy::add_ajax('remote_test');
// Remote destination testing.
pb_backupbuddy::add_ajax('refresh_site_size');
// Server info page site size update.
pb_backupbuddy::add_ajax('refresh_site_size_excluded');
// Server info page site size (sans exclusions) update.
pb_backupbuddy::add_ajax('refresh_database_size');
// Server info page database size update.
pb_backupbuddy::add_ajax('refresh_database_size_excluded');
// Server info page site size (sans exclusions) update.
pb_backupbuddy::add_ajax('phpinfo');
// Server info page extended PHPinfo thickbox.
pb_backupbuddy::add_ajax('exclude_tree');
// Directory exclusions picker for settings page.
pb_backupbuddy::add_ajax('download_archive');
// Directory exclusions picker for settings page.
/********** DASHBOARD (admin) **********/
// Display stats in Dashboard.
pb_backupbuddy::add_dashboard_widget('stats', 'BackupBuddy');
/********** FILTERS (admin) **********/
pb_backupbuddy::add_filter('plugin_row_meta', 10, 2);
/********** PAGES (admin) **********/
if (is_multisite() && pb_backupbuddy::$classes['core']->is_network_activated() && !defined('PB_DEMO_MODE')) {
    // Multisite installation.
    if (is_network_admin()) {
        // Network Admin pages
        pb_backupbuddy::add_page('', 'getting_started', array(pb_backupbuddy::settings('name'), 'Getting Started'));
        pb_backupbuddy::add_page('getting_started', 'backup', __('Backup', 'it-l10n-backupbuddy'), 'manage_network');
        pb_backupbuddy::add_page('getting_started', 'migrate_restore', __('Migrate, Restore', 'it-l10n-backupbuddy'), 'manage_network');
        pb_backupbuddy::add_page('getting_started', 'multisite_import', __('Multisite Import', 'it-l10n-backupbuddy'), 'manage_network');
開發者ID:sonnetmedia,項目名稱:otherpress.com,代碼行數:31,代碼來源:init_admin.php

示例9:

// Display backup integrity status.
pb_backupbuddy::add_ajax('backup_step_status');
// Display backup step status in thickbox for recent backups section.
pb_backupbuddy::add_ajax('view_status_log');
// Display status log in thickbox for recent backups section.
pb_backupbuddy::add_ajax('importbuddy');
// ImportBuddy download link.
pb_backupbuddy::add_ajax('repairbuddy');
// RepairBuddy download link.
pb_backupbuddy::add_ajax('hash');
// Obtain MD5 hash of a backup file.
pb_backupbuddy::add_ajax('ajax_controller_callback_function');
// Tell WordPress about this AJAX callback.
pb_backupbuddy::add_ajax('disalert');
// Dismissable alert saving. Currently framework does NOT auto-load this AJAX ability to save disalerts.
pb_backupbuddy::add_ajax('importexport_settings');
// Popup thickbox for importing and exporting settings.
/********** DASHBOARD (admin) **********/
// Display stats in Dashboard.
//if ( pb_backupbuddy::$options['dashboard_stats'] == '1' ) {
if (!is_multisite() || is_multisite() && is_network_admin()) {
    // Only show if standalon OR in main network admin.
    pb_backupbuddy::add_dashboard_widget('stats', 'BackupBuddy', 'godmode');
}
//}
/********** FILTERS (admin) **********/
pb_backupbuddy::add_filter('plugin_row_meta', 10, 2);
/********** PAGES (admin) **********/
if (is_multisite() && pb_backupbuddy::$classes['core']->is_network_activated() && !defined('PB_DEMO_MODE')) {
    // Multisite installation.
    if (is_network_admin()) {
開發者ID:CherylMuniz,項目名稱:fashion,代碼行數:31,代碼來源:init_admin.php

示例10: array

// Remote destination testing.
pb_backupbuddy::add_ajax('refresh_site_size');
// Server info page site size update.
pb_backupbuddy::add_ajax('refresh_site_size_excluded');
// Server info page site size (sans exclusions) update.
pb_backupbuddy::add_ajax('refresh_database_size');
// Server info page database size update.
pb_backupbuddy::add_ajax('refresh_database_size_excluded');
// Server info page site size (sans exclusions) update.
pb_backupbuddy::add_ajax('phpinfo');
// Server info page extended PHPinfo thickbox.
pb_backupbuddy::add_ajax('exclude_tree');
// Directory exclusions picker for settings page.
pb_backupbuddy::add_ajax('download_archive');
// Directory exclusions picker for settings page.
pb_backupbuddy::add_ajax('set_backup_note');
// Used for setting a note on a backup archive in the backup listing.
/********** DASHBOARD (admin) **********/
// Display stats in Dashboard.
if (!is_multisite() || is_multisite() && is_network_admin()) {
    // Only show if standalon OR in main network admin.
    pb_backupbuddy::add_dashboard_widget('stats', 'BackupBuddy', 'godmode');
}
/********** FILTERS (admin) **********/
pb_backupbuddy::add_filter('plugin_row_meta', 10, 2);
/********** PAGES (admin) **********/
if (is_multisite() && pb_backupbuddy::$classes['core']->is_network_activated() && !defined('PB_DEMO_MODE')) {
    // Multisite installation.
    if (is_network_admin()) {
        // Network Admin pages
        pb_backupbuddy::add_page('', 'getting_started', array(pb_backupbuddy::settings('name'), 'Getting Started'));
開發者ID:verbazend,項目名稱:AWFA,代碼行數:31,代碼來源:init_admin.php


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