本文整理匯總了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);
}