PluginProbe ʕ •ᴥ•ʔ
Flexible Checkout Fields for WooCommerce – WooCommerce Checkout Manager / 4.1.40
Flexible Checkout Fields for WooCommerce – WooCommerce Checkout Manager v4.1.40
4.1.41 4.1.40 4.1.39 4.1.38 trunk 1.2 1.2.1 1.2.2 1.2.3 1.3 1.3.1 1.3.2 1.3.3 1.4 1.5 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.6 1.6.1 1.6.10 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 1.7.1 1.7.2 1.8 1.8.1 1.8.2 1.8.3 1.9.0 1.9.1 1.9.2 1.9.3 2.0.0 2.0.1 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.1.0 2.1.1 2.1.4 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.3.1 2.3.2 2.3.3 2.3.4 2.4.0 2.4.1 2.4.10 2.4.11 2.4.12 2.4.13 2.4.14 2.4.2 2.4.3 2.4.4 2.4.5 2.4.6 2.4.7 2.4.8 2.4.9 2.5.0 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 2.5.6 2.5.7 2.6.0 2.7.0 2.7.1 2.8.0 2.9.0 2.9.1 2.9.2 3.0.0 3.0.1 3.0.10 3.0.11 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.2 3.1.3 3.2.0 3.2.1 3.2.2 3.2.3 3.2.4 3.3.0 3.4.0 3.4.1 3.4.2 3.4.3 3.5.0 3.5.1 3.5.10 3.5.11 3.5.12 3.5.13 3.5.14 3.5.15 3.5.16 3.5.17 3.5.18 3.5.19 3.5.2 3.5.3 3.5.4 3.5.5 3.5.6 3.5.7 3.5.8 3.5.9 3.6.0 4.0.0 4.1.0 4.1.1 4.1.10 4.1.11 4.1.12 4.1.13 4.1.14 4.1.15 4.1.16 4.1.17 4.1.18 4.1.19 4.1.2 4.1.20 4.1.21 4.1.22 4.1.23 4.1.24 4.1.25 4.1.26 4.1.27 4.1.28 4.1.29 4.1.3 4.1.30 4.1.31 4.1.32 4.1.34 4.1.35 4.1.36 4.1.37 4.1.4 4.1.5 4.1.6 4.1.7 4.1.8 4.1.9
flexible-checkout-fields / src / Settings / Option / OptionInterface.php
flexible-checkout-fields / src / Settings / Option Last commit date
CssOption.php 4 weeks ago CustomFieldDisabledOption.php 4 weeks ago CustomFieldOption.php 4 weeks ago DefaultOption.php 4 weeks ago DisplayOnAccountAddressOption.php 4 weeks ago DisplayOnAccountOrderOption.php 4 weeks ago DisplayOnEmailsOption.php 4 weeks ago DisplayOnOnlyAddressOption.php 4 weeks ago DisplayOnOption.php 4 weeks ago DisplayOnThankYouOption.php 4 weeks ago DisplayOnWithoutAddressOption.php 4 weeks ago EnabledOption.php 4 weeks ago ExternalFieldInfoOption.php 4 weeks ago ExternalFieldOption.php 4 weeks ago FieldTypeDefaultOption.php 4 weeks ago FieldTypeOption.php 4 weeks ago FormattingFieldLabelOption.php 4 weeks ago FormattingNewLineOption.php 4 weeks ago FormattingOption.php 4 weeks ago FormattingStateAbbrOption.php 4 weeks ago FormattingStateCommaOption.php 4 weeks ago FormattingStateOption.php 4 weeks ago FormattingWcOption.php 4 weeks ago ImageOption.php 4 weeks ago ImageWidthOption.php 4 weeks ago LabelOption.php 4 weeks ago LabelOptionallyOption.php 4 weeks ago LogicAdvOption.php 4 weeks ago NameOption.php 4 weeks ago OptionAbstract.php 4 weeks ago OptionIntegration.php 4 weeks ago OptionInterface.php 4 weeks ago PlaceholderCheckboxOption.php 4 weeks ago PlaceholderOption.php 4 weeks ago PricingAdvOption.php 4 weeks ago PriorityOption.php 4 weeks ago RegexMessageOption.php 4 weeks ago RegexPhoneOption.php 4 weeks ago RequiredHiddenOption.php 4 weeks ago RequiredOption.php 4 weeks ago RequiredWcHiddenOption.php 4 weeks ago SettingJqueryCssOption.php 4 weeks ago SettingJqueryOption.php 4 weeks ago SettingSectionsAdvOption.php 4 weeks ago ValidationInfoOption.php 4 weeks ago ValidationOption.php 4 weeks ago ValidationPostcodeOption.php 4 weeks ago ValidationWcOption.php 4 weeks ago ValueMaxOption.php 4 weeks ago ValueMinOption.php 4 weeks ago ValueStepOption.php 4 weeks ago
OptionInterface.php
182 lines
1 <?php
2
3 namespace WPDesk\FCF\Free\Settings\Option;
4
5 /**
6 * Interface for option of field.
7 */
8 interface OptionInterface {
9
10 /**
11 * Returns name of option.
12 *
13 * @return string Option name.
14 */
15 public function get_option_name(): string;
16
17 /**
18 * Returns name of option tab.
19 *
20 * @return string Tab name.
21 */
22 public function get_option_tab(): string;
23
24 /**
25 * Returns type of option.
26 *
27 * @return string Option name.
28 */
29 public function get_option_type(): string;
30
31 /**
32 * Returns label of option.
33 *
34 * @return string Option label.
35 */
36 public function get_option_label(): string;
37
38 /**
39 * Returns label of option row (for Repeater field).
40 *
41 * @return string Option row label.
42 */
43 public function get_option_row_label(): string;
44
45 /**
46 * Returns content for label tooltip.
47 *
48 * @return string Tooltip content.
49 */
50 public function get_label_tooltip(): string;
51
52 /**
53 * Returns URL for label tooltip.
54 *
55 * @return string Tooltip URL.
56 */
57 public function get_label_tooltip_url(): string;
58
59 /**
60 * Returns list of HTML attributes for field with their values.
61 *
62 * @return array Atts for field.
63 */
64 public function get_input_atts(): array;
65
66 /**
67 * Returns pattern to display value (%s will be replaced by option value).
68 * It works only for text or textarea fields.
69 *
70 * @return string Pattern to display value.
71 */
72 public function get_print_pattern(): string;
73
74 /**
75 * Returns status if option are readonly.
76 *
77 * @return bool Readonly status of option.
78 */
79 public function is_readonly(): bool;
80
81 /**
82 * Returns list of validation rules for field.
83 * Key is regular expression without delimiters, value is message of validation error.
84 *
85 * @return array Validation rules.
86 */
87 public function get_validation_rules(): array;
88
89 /**
90 * Returns name of option and regex for its value that must be true to display this field.
91 * Key is name of field, value is regular expression without delimiters.
92 *
93 * @return array Option names with regexes.
94 */
95 public function get_options_regexes_to_display(): array;
96
97 /**
98 * Returns name of option whose value will create list of rows for Repeater field.
99 *
100 * @return string Option name.
101 */
102 public function get_option_name_to_rows(): string;
103
104 /**
105 * Returns available values of option, if exists.
106 *
107 * @return array List of option values.
108 */
109 public function get_values(): array;
110
111 /**
112 * Returns default value of option.
113 *
114 * @return string|array Default value.
115 */
116 public function get_default_value();
117
118 /**
119 * Returns endpoint route to retrieve values.
120 *
121 * @return string Route name of endpoint.
122 */
123 public function get_endpoint_route(): string;
124
125 /**
126 * Returns option names passed to REST API to retrieve values.
127 *
128 * @return array Option keys.
129 */
130 public function get_endpoint_option_names(): array;
131
132 /**
133 * Returns status if values from endpoint should be refreshed automatically (triggered by refresh event).
134 *
135 * @return bool Status of auto-refreshed values.
136 */
137 public function is_endpoint_autorefreshed(): bool;
138
139 /**
140 * Returns status whether change of option value initiates refresh event.
141 *
142 * @return bool Status of refresh event.
143 */
144 public function is_refresh_trigger(): bool;
145
146 /**
147 * Returns subfields of option, if exists.
148 *
149 * @return OptionInterface[] List of option children.
150 */
151 public function get_children(): array;
152
153 /**
154 * Filters option value from all unsafe strings.
155 *
156 * @param string|array $field_value Original option value.
157 *
158 * @return string|array Updated value of option.
159 */
160 public function sanitize_option_value( $field_value );
161
162 /**
163 * Returns updated settings of field contain values for this option.
164 *
165 * @param array $field_data Original settings of field.
166 * @param array $field_settings Settings of field.
167 *
168 * @return array Updated settings of field.
169 */
170 public function update_field_data( array $field_data, array $field_settings ): array;
171
172 /**
173 * Returns updated settings of field contain submitted values.
174 *
175 * @param array $field_data Current settings of field.
176 * @param array $field_settings Settings of field.
177 *
178 * @return array Updated settings of field.
179 */
180 public function save_field_data( array $field_data, array $field_settings ): array;
181 }
182