當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Step::__construct方法代碼示例

本文整理匯總了PHP中Step::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP Step::__construct方法的具體用法?PHP Step::__construct怎麽用?PHP Step::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Step的用法示例。


在下文中一共展示了Step::__construct方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __construct

 /**
  * Class constructor
  *
  * @param Log $log
  */
 public function __construct(Log $log)
 {
     parent::__construct($log);
     $this->args = ['name' => 'contact', 'title' => __('Contact', 'wp-easy-mode'), 'page_title' => __('Contact', 'wp-easy-mode'), 'can_skip' => true];
     add_action('wpem_print_header_scripts_' . $this->args['name'], [$this, 'print_header_scripts']);
     add_action('wpem_print_footer_scripts_' . $this->args['name'], [$this, 'print_footer_scripts']);
 }
開發者ID:ChrisSargent,項目名稱:moodesignz,代碼行數:12,代碼來源:class-step-contact.php

示例2: __construct

 /**
  * Class constructor
  *
  * @param Log       $log
  * @param Image_API $image_api
  */
 public function __construct(Log $log, Image_API $image_api)
 {
     $this->image_api = $image_api;
     parent::__construct($log);
     $this->args = ['name' => 'theme', 'title' => __('Theme', 'wp-easy-mode'), 'page_title' => __('Choose a Theme', 'wp-easy-mode'), 'can_skip' => false];
     add_action('wpem_print_footer_scripts_' . $this->args['name'], [$this, 'print_footer_scripts']);
     $pointer = new Pointer();
     $pos = 1;
     $count = 2;
     if ('store' !== wpem_get_site_type()) {
         $count = 3;
         $pointer->register(['id' => 'wpem_theme_preview_1', 'target' => '#wpem-header-images-wrapper', 'cap' => 'manage_options', 'options' => ['content' => wp_kses_post(sprintf('<h3>%s</h3><p>%s</p>', sprintf(__('Step %1$s of %2$s', 'wp-easy-mode'), $pos++, $count), __('Choose a stylish header image for your website.', 'wp-easy-mode'))), 'position' => ['edge' => 'left', 'align' => 'right']], 'btn_primary' => __('Next', 'wp-easy-mode'), 'close_on_load' => true, 'next_pointer' => 'wpem_theme_preview_2']);
     }
     $pointer->register(['id' => 'wpem_theme_preview_2', 'target' => '.wp-full-overlay-header .next-theme', 'cap' => 'manage_options', 'options' => ['content' => wp_kses_post(sprintf('<h3>%s</h3><p>%s</p>', sprintf(__('Step %1$s of %2$s', 'wp-easy-mode'), $pos++, $count), __('Preview different website designs using the the left and right arrows.', 'wp-easy-mode'))), 'position' => ['at' => 'left bottom', 'my' => 'left-63 top']], 'btn_primary' => __('Next', 'wp-easy-mode'), 'close_on_load' => true, 'next_pointer' => 'wpem_theme_preview_3']);
     $pointer->register(['id' => 'wpem_theme_preview_3', 'target' => '.button-primary.theme-install', 'cap' => 'manage_options', 'options' => ['content' => wp_kses_post(sprintf('<h3>%s</h3><p>%s</p>', sprintf(__('Step %1$s of %2$s', 'wp-easy-mode'), $pos, $count), __("When you've found a design you like, click Select to install it.", 'wp-easy-mode'))), 'position' => ['at' => 'left bottom', 'my' => 'left-34 top+5']], 'btn_primary' => __('Close', 'wp-easy-mode'), 'btn_primary_close' => true, 'close_on_load' => true]);
     $pointer->register_scripts();
 }
開發者ID:ChrisSargent,項目名稱:moodesignz,代碼行數:23,代碼來源:class-step-theme.php

示例3: __construct

 public function __construct($plan, $address, $zip, $responsible, $telephone = null, $complement = null, $comment = null, $trackId = null)
 {
     $this->plan = $plan;
     parent::__construct($address, $zip, $responsible, $telephone, $complement, $comment, $trackId);
 }
開發者ID:eduardo-marcolino,項目名稱:php-sdk,代碼行數:5,代碼來源:ScheduledStep.php

示例4: __construct

 /**
  * Class constructor
  *
  * @param Log $log
  */
 public function __construct(Log $log)
 {
     parent::__construct($log);
     $this->args = ['name' => 'start', 'title' => __('Start', 'wp-easy-mode'), 'page_title' => __('Create a WordPress Website', 'wp-easy-mode'), 'can_skip' => false];
 }
開發者ID:ChrisSargent,項目名稱:moodesignz,代碼行數:10,代碼來源:class-step-start.php

示例5: __construct

 /**
  * Class constructor
  *
  * @param Log       $log
  * @param Image_API $image_api
  */
 public function __construct(Log $log, Image_API $image_api)
 {
     $this->image_api = $image_api;
     parent::__construct($log);
     $this->args = ['name' => 'settings', 'title' => __('Settings', 'wp-easy-mode'), 'page_title' => __('Settings', 'wp-easy-mode'), 'can_skip' => false];
 }
開發者ID:ChrisSargent,項目名稱:moodesignz,代碼行數:12,代碼來源:class-step-settings.php


注:本文中的Step::__construct方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。