本文整理汇总了PHP中Bulk_Upgrader_Skin::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Bulk_Upgrader_Skin::__construct方法的具体用法?PHP Bulk_Upgrader_Skin::__construct怎么用?PHP Bulk_Upgrader_Skin::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Bulk_Upgrader_Skin
的用法示例。
在下文中一共展示了Bulk_Upgrader_Skin::__construct方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* Constructor. Parses default args with new ones and extracts them for use.
*
* @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);
}
示例2: __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())
{
// Get TGMPA class instance.
$this->tgmpa = call_user_func(array(get_class($GLOBALS['tgmpa']), 'get_instance'));
// Parse default and new args.
$defaults = array('url' => '', 'nonce' => '', 'names' => array(), 'install_type' => 'install');
$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);
}
示例3: array
function Theme_Upgrader_Skin($args = array())
{
parent::__construct($args);
}
示例4: array
function __construct($args = array())
{
parent::__construct($args);
}
示例5: __construct
public function __construct($args = array())
{
$defaults = array('url' => '', 'nonce' => '', 'names' => array());
$args = wp_parse_args($args, $defaults);
$this->plugin_names = $args['names'];
parent::__construct($args);
}