本文整理汇总了PHP中pb_backupbuddy::_updater方法的典型用法代码示例。如果您正苦于以下问题:PHP pb_backupbuddy::_updater方法的具体用法?PHP pb_backupbuddy::_updater怎么用?PHP pb_backupbuddy::_updater使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pb_backupbuddy
的用法示例。
在下文中一共展示了pb_backupbuddy::_updater方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
function upgrader_instantiate($plugin_slug)
{
$args = array('parent' => $this, 'remote_url' => 'http://updater2.ithemes.com/index.php', 'version' => pb_backupbuddy::settings('version'), 'plugin_slug' => pb_backupbuddy::settings('slug'), 'plugin_path' => plugin_basename(pb_backupbuddy::plugin_path() . '/' . pb_backupbuddy::settings('init')), 'plugin_url' => pb_backupbuddy::plugin_url(), 'product' => pb_backupbuddy::settings('slug'), 'time' => 43200, 'return_format' => 'json', 'method' => 'POST', 'upgrade_action' => 'check');
// Instantiate object of latest updater (by namespace) and apply to this plugin's pluginbuddy class (in this namespace).
//$class_name = $plugin_namespace . "\\updater";
$target_plugin_class_name = 'pb_' . $plugin_slug . '_updater';
$this_plugin_class_name = 'pb_' . $this->_slug;
//$this_plugin_class_name::$_updater = new $target_plugin_class_name( $args );
pb_backupbuddy::$_updater = new $target_plugin_class_name($args);
}