本文整理汇总了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']);
}
示例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();
}
示例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);
}
示例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];
}
示例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];
}