/** * * @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); }
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); }
/** * * @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); }
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); }
/** * * @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); }
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 = '******'; } else { $this->login = '******'; } if ($args['type'] == 'framework') { $this->type = 'framework'; } else { $this->type = 'theme'; } $this->theme = $args['theme']; $this->cookies = $args['cookies']; parent::__construct($args); }
public function __construct(OutputInterface $output) { parent::__construct(); $this->output = $output; }
/** * * @TODO document * */ function __construct($args = array()) { parent::__construct($args); }
/** * 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); }
function __construct($args = array()) { $defaults = array('url' => '', 'nonce' => '', 'title' => '', 'context' => false, 'theme' => '', 'plugin' => ''); $args = wp_parse_args($args, $defaults); parent::__construct($args); }
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); }
/** * * @param array $args */ public function __construct($args = array()) { $defaults = array('url' => '', 'nonce' => ''); $args = wp_parse_args($args, $defaults); parent::__construct($args); }
public function __construct($args = array(), $parent = null) { $this->_parent = $parent; parent::__construct($args); }