PluginProbe
VikBooking Hotel Booking Engine & PMS / trunk
VikBooking Hotel Booking Engine & PMS vtrunk
1.8.15 1.8.14 1.8.13 1.8.12 1.8.11 1.8.10 1.8.9 1.8.6 1.8.7 1.8.8 trunk 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 1.6.6 1.6.7 1.6.8 1.6.9 1.7.0 1.7.1 1.7.2 1.7.3 All 36 releases
vikbooking / admin / helpers / src / help / wizard / instruction.php

instruction.php in VikBooking Hotel Booking Engine & PMS trunk, at admin/helpers/src/help/wizard/instruction.php

95 lines 2.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * @package VikBooking
4 * @subpackage core
5 * @author E4J s.r.l.
6 * @copyright Copyright (C) 2021 E4J s.r.l. All Rights Reserved.
7 * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
8 * @link https://vikwp.com
9 */
10
11 // No direct access
12 defined('ABSPATH') or die('No script kiddies please!');
13
14 /**
15 * Wizard help instruction interface.
16 *
17 * @since 1.18.2 (J) - 1.8.2 (WP)
18 */
19 interface VBOHelpWizardInstruction
20 {
21 /**
22 * Returns the instruction unique identifier.
23 *
24 * @return string
25 */
26 public function getID();
27
28 /**
29 * Returns the instruction title.
30 *
31 * @return string
32 */
33 public function getTitle();
34
35 /**
36 * Returns the instruction icon (FontAwesome).
37 *
38 * @return string
39 */
40 public function getIcon();
41
42 /**
43 * Instructions with higher priority will be prompted first.
44 *
45 * @return int
46 */
47 public function getPriority();
48
49 /**
50 * Checks whether the instruction is supported by the current customer.
51 *
52 * @return bool
53 */
54 public function isSupported();
55
56 /**
57 * Checks whether the (supported) instruction has been already configured.
58 *
59 * @return bool
60 */
61 public function isConfigured();
62
63 /**
64 * Shows the instruction details.
65 *
66 * @return string
67 */
68 public function show();
69
70 /**
71 * Checks whether the instruction can be dismissed.
72 *
73 * @return bool
74 */
75 public function isDismissible();
76
77 /**
78 * Checks whether the instruction can be processed.
79 *
80 * @param string|null &$btnText A custom text to display for the "Process" button.
81 *
82 * @return bool
83 */
84 public function isProcessable(?string &$btnText = null);
85
86 /**
87 * Processes the instruction.
88 *
89 * @param array $args
90 *
91 * @return mixed The returned value will be propagated to the caller.
92 */
93 public function process(array $args = []);
94 }
95