当前位置: 首页>>代码示例>>PHP>>正文


PHP WP_Upgrader_Skin::__construct方法代码示例

本文整理汇总了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);
 }
开发者ID:qaryas,项目名称:qaryas_site,代码行数:11,代码来源:class-theme-upgrader-skin.php

示例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);
 }
开发者ID:chandra-patel,项目名称:rtbiz,代码行数:8,代码来源:class-rtbiz-plugin-upgrader-skin.php

示例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);
 }
开发者ID:Garth619,项目名称:Femi9,代码行数:13,代码来源:class-plugin-upgrader-skin.php

示例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);
 }
开发者ID:pauEscarcia,项目名称:AIMM,代码行数:9,代码来源:wp-upgrader-skin.php

示例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);
 }
开发者ID:pbearne,项目名称:contrib2core,代码行数:15,代码来源:class-language-pack-upgrader-skin.php

示例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);
 }
开发者ID:rinodung,项目名称:live-theme,代码行数:18,代码来源:class-themify-updater.php

示例7: __construct

 public function __construct(OutputInterface $output)
 {
     parent::__construct();
     $this->output = $output;
 }
开发者ID:ericclemmons,项目名称:wordpress-generator,代码行数:5,代码来源:UpgraderSkin.php

示例8: array

 /**
  *
  * @TODO document
  *
  */
 function __construct($args = array())
 {
     parent::__construct($args);
 }
开发者ID:climo,项目名称:PageLines-Framework,代码行数:9,代码来源:library.extension.php

示例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);
 }
开发者ID:hugocuqui,项目名称:paulaferracini2,代码行数:17,代码来源:class-plugin-activation.php

示例10: array

 function __construct($args = array())
 {
     $defaults = array('url' => '', 'nonce' => '', 'title' => '', 'context' => false, 'theme' => '', 'plugin' => '');
     $args = wp_parse_args($args, $defaults);
     parent::__construct($args);
 }
开发者ID:Ajoinsardegna,项目名称:wp,代码行数:6,代码来源:upgrader-skin.php

示例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);
 }
开发者ID:rigelstpierre,项目名称:Everlovin-Press,代码行数:7,代码来源:slidedeck-lens-upload.php

示例12: __construct

 /**
  *
  * @param array $args
  */
 public function __construct($args = array())
 {
     $defaults = array('url' => '', 'nonce' => '');
     $args = wp_parse_args($args, $defaults);
     parent::__construct($args);
 }
开发者ID:Garth619,项目名称:Femi9,代码行数:10,代码来源:class-bulk-upgrader-skin.php

示例13: __construct

 public function __construct($args = array(), $parent = null)
 {
     $this->_parent = $parent;
     parent::__construct($args);
 }
开发者ID:WebuddhaInc,项目名称:wordpress-plg_wbsitemanager,代码行数:5,代码来源:autoupdate.php


注:本文中的WP_Upgrader_Skin::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。