當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。