本文整理汇总了PHP中pb_backupbuddy::load_controller方法的典型用法代码示例。如果您正苦于以下问题:PHP pb_backupbuddy::load_controller方法的具体用法?PHP pb_backupbuddy::load_controller怎么用?PHP pb_backupbuddy::load_controller使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pb_backupbuddy
的用法示例。
在下文中一共展示了pb_backupbuddy::load_controller方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: widget
/**
* \WP_Widget::widget() Override
*
* Function is called when a widget is to be displayed. Use echo to display to page.
*
* @param $args array ?
* @param $instance array Associative array containing the options saved on the widget form.
* @return null
*/
function widget($args, $instance)
{
if ($instance['group'] != '' && isset(pb_backupbuddy::$options['groups'][$instance['group']])) {
pb_backupbuddy::load_controller('_run_carousel');
echo run_carousel($instance['group']);
} else {
echo '{Error #45455489. Unknown group in widget. Please verify your widget settings are up to date for this Carousel item.}';
}
}
示例2: widget
/**
* \WP_Widget::widget() Override
*
* Function is called when a widget is to be displayed. Use echo to display to page.
*
* @param $args array ?
* @param $instance array Associative array containing the options saved on the widget form.
* @return null
*/
function widget($args, $instance)
{
pb_backupbuddy::load_controller('_run_copious');
echo run_copious($instance);
}
示例3: dirname
// End class pluginbuddy.
if (defined('PB_STANDALONE') && PB_STANDALONE === true) {
require_once 'standalone_preloader.php';
}
// ********** Load core classes **********
require_once dirname(__FILE__) . '/classes/core_controllers.php';
//require_once( dirname( __FILE__ ) . '/classes/ui.php' ); Now handled in self::_construct().
require_once dirname(__FILE__) . '/classes/form.php';
require_once dirname(__FILE__) . '/classes/settings.php';
// ********** Initialize PluginBuddy framework **********
if (!isset($pluginbuddy_init)) {
$pluginbuddy_init = 'init.php';
// default init file.
}
pb_backupbuddy::init($pluginbuddy_settings, $pluginbuddy_init);
unset($pluginbuddy_settings);
unset($pluginbuddy_init);
// ********** Load initialization files **********
require_once dirname(dirname(__FILE__)) . '/init_global.php';
if (is_admin()) {
require_once dirname(dirname(__FILE__)) . '/init_admin.php';
} else {
require_once dirname(dirname(__FILE__)) . '/init_public.php';
}
if (defined('PB_STANDALONE') && PB_STANDALONE === true) {
pb_backupbuddy::load_controller('pages/default');
}
// Used for ManageWP support.
if (!is_admin() && function_exists('add_action')) {
add_action('setup_theme', 'pb_backupbuddy::pb_filter_update');
}