本文整理汇总了PHP中WP_Upgrader_Skin::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP WP_Upgrader_Skin::__construct方法的具体用法?PHP WP_Upgrader_Skin::__construct怎么用?PHP WP_Upgrader_Skin::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类WP_Upgrader_Skin
的用法示例。
在下文中一共展示了WP_Upgrader_Skin::__construct方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
*
* @param array $args
*/
public function __construct($args = array())
{
$defaults = array('url' => '', 'theme' => '', 'nonce' => '', 'title' => __('Update Theme'));
$args = wp_parse_args($args, $defaults);
$this->theme = $args['theme'];
parent::__construct($args);
}
示例2: array
function __construct($args = array())
{
$defaults = array('type' => 'web', 'url' => '', 'plugin' => '', 'nonce' => '', 'title' => '');
$args = wp_parse_args($args, $defaults);
$this->type = $args['type'];
$this->api = isset($args['api']) ? $args['api'] : array();
parent::__construct($args);
}
示例3: __construct
/**
*
* @param array $args
*/
public function __construct($args = array())
{
$defaults = array('url' => '', 'plugin' => '', 'nonce' => '', 'title' => __('Update Plugin'));
$args = wp_parse_args($args, $defaults);
$this->plugin = $args['plugin'];
$this->plugin_active = is_plugin_active($this->plugin);
$this->plugin_network_active = is_plugin_active_for_network($this->plugin);
parent::__construct($args);
}
示例4: array
function __construct($args = array())
{
$defaults = array('url' => '', 'plugin' => '', 'nonce' => '', 'title' => __('Downloading Wysija Premium', WYSIJA));
$args = wp_parse_args($args, $defaults);
$this->plugin = $args['plugin'];
$this->plugin_active = is_plugin_active($this->plugin);
$this->plugin_network_active = is_plugin_active_for_network($this->plugin);
parent::__construct($args);
}
示例5: __construct
/**
*
* @param array $args
*/
public function __construct($args = array())
{
$defaults = array('url' => '', 'nonce' => '', 'title' => __('Update Translations'), 'skip_header_footer' => false);
$args = wp_parse_args($args, $defaults);
if ($args['skip_header_footer']) {
$this->done_header = true;
$this->done_footer = true;
$this->display_footer_actions = false;
}
parent::__construct($args);
}
示例6: array
function __construct($args = array())
{
$defaults = array('type' => '', 'login' => '', 'url' => '', 'theme' => '', 'nonce' => '', 'title' => __('Update Theme', 'themify'), 'cookies' => null);
$args = wp_parse_args($args, $defaults);
if ($args['login'] == 'true') {
$this->login = 'true';
} else {
$this->login = 'false';
}
if ($args['type'] == 'framework') {
$this->type = 'framework';
} else {
$this->type = 'theme';
}
$this->theme = $args['theme'];
$this->cookies = $args['cookies'];
parent::__construct($args);
}
示例7: __construct
public function __construct(OutputInterface $output)
{
parent::__construct();
$this->output = $output;
}
示例8: array
/**
*
* @TODO document
*
*/
function __construct($args = array())
{
parent::__construct($args);
}
示例9: __construct
/**
* Constructor. Parses default args with new ones and extracts them for use.
*
* @since 2.2.0
*
* @param array $args Arguments to pass for use within the class
*/
public function __construct($args = array())
{
/** Parse default and new args */
$defaults = array('url' => '', 'nonce' => '', 'names' => array());
$args = wp_parse_args($args, $defaults);
/** Set plugin names to $this->plugin_names property */
$this->plugin_names = $args['names'];
/** Extract the new args */
parent::__construct($args);
}
示例10: array
function __construct($args = array())
{
$defaults = array('url' => '', 'nonce' => '', 'title' => '', 'context' => false, 'theme' => '', 'plugin' => '');
$args = wp_parse_args($args, $defaults);
parent::__construct($args);
}
示例11: array
function __construct($args = array())
{
$defaults = array('type' => 'web', 'url' => '', 'lens_dirname' => '', 'nonce' => '', 'title' => '');
$args = wp_parse_args($args, $defaults);
$this->type = $args['type'];
parent::__construct($args);
}
示例12: __construct
/**
*
* @param array $args
*/
public function __construct($args = array())
{
$defaults = array('url' => '', 'nonce' => '');
$args = wp_parse_args($args, $defaults);
parent::__construct($args);
}
示例13: __construct
public function __construct($args = array(), $parent = null)
{
$this->_parent = $parent;
parent::__construct($args);
}