@@ -16,55 +16,55 @@ |
||
16 | 16 | { |
17 | 17 | |
18 | 18 | |
19 | - /** |
|
20 | - * @return int |
|
21 | - */ |
|
22 | - public function order(); |
|
19 | + /** |
|
20 | + * @return int |
|
21 | + */ |
|
22 | + public function order(); |
|
23 | 23 | |
24 | 24 | |
25 | 25 | |
26 | - /** |
|
27 | - * @param int $order |
|
28 | - * @throws InvalidArgumentException |
|
29 | - */ |
|
30 | - public function setOrder($order); |
|
26 | + /** |
|
27 | + * @param int $order |
|
28 | + * @throws InvalidArgumentException |
|
29 | + */ |
|
30 | + public function setOrder($order); |
|
31 | 31 | |
32 | 32 | |
33 | 33 | |
34 | - /** |
|
35 | - * @return string |
|
36 | - */ |
|
37 | - public function redirectUrl(); |
|
34 | + /** |
|
35 | + * @return string |
|
36 | + */ |
|
37 | + public function redirectUrl(); |
|
38 | 38 | |
39 | 39 | |
40 | 40 | |
41 | - /** |
|
42 | - * @param string $redirect_url |
|
43 | - * @throws InvalidDataTypeException |
|
44 | - * @throws InvalidArgumentException |
|
45 | - */ |
|
46 | - public function setRedirectUrl($redirect_url); |
|
41 | + /** |
|
42 | + * @param string $redirect_url |
|
43 | + * @throws InvalidDataTypeException |
|
44 | + * @throws InvalidArgumentException |
|
45 | + */ |
|
46 | + public function setRedirectUrl($redirect_url); |
|
47 | 47 | |
48 | 48 | |
49 | 49 | |
50 | - /** |
|
51 | - * @param array $redirect_args |
|
52 | - * @throws InvalidDataTypeException |
|
53 | - * @throws InvalidArgumentException |
|
54 | - */ |
|
55 | - public function addRedirectArgs($redirect_args = array()); |
|
50 | + /** |
|
51 | + * @param array $redirect_args |
|
52 | + * @throws InvalidDataTypeException |
|
53 | + * @throws InvalidArgumentException |
|
54 | + */ |
|
55 | + public function addRedirectArgs($redirect_args = array()); |
|
56 | 56 | |
57 | 57 | |
58 | 58 | |
59 | - /** |
|
60 | - * @return string |
|
61 | - */ |
|
62 | - public function redirectTo(); |
|
59 | + /** |
|
60 | + * @return string |
|
61 | + */ |
|
62 | + public function redirectTo(); |
|
63 | 63 | |
64 | 64 | |
65 | 65 | |
66 | - /** |
|
67 | - * @param string $redirect_to |
|
68 | - */ |
|
69 | - public function setRedirectTo($redirect_to); |
|
66 | + /** |
|
67 | + * @param string $redirect_to |
|
68 | + */ |
|
69 | + public function setRedirectTo($redirect_to); |
|
70 | 70 | } |
@@ -12,68 +12,68 @@ |
||
12 | 12 | class EE_Checkbox_Dropdown_Selector_Input extends EE_Form_Input_With_Options_Base |
13 | 13 | { |
14 | 14 | |
15 | - /** |
|
16 | - * @var string text to display on the select button itself |
|
17 | - */ |
|
18 | - protected $_select_button_text; |
|
15 | + /** |
|
16 | + * @var string text to display on the select button itself |
|
17 | + */ |
|
18 | + protected $_select_button_text; |
|
19 | 19 | |
20 | - /** |
|
21 | - * @param array $answer_options |
|
22 | - * @param array $input_settings |
|
23 | - */ |
|
24 | - public function __construct($answer_options, $input_settings = array()) |
|
25 | - { |
|
26 | - $this->_select_button_text = EEH_Array::is_set( |
|
27 | - $input_settings, |
|
28 | - 'select_button_text', |
|
29 | - esc_html__('Select', 'event_espresso') |
|
30 | - ); |
|
31 | - $display_strategy = new EE_Checkbox_Dropdown_Selector_Display_Strategy(); |
|
32 | - $this->_set_display_strategy($display_strategy); |
|
33 | - $this->load_iframe_assets($display_strategy); |
|
34 | - $this->_add_validation_strategy( |
|
35 | - new EE_Many_Valued_Validation_Strategy( |
|
36 | - array( |
|
37 | - new EE_Enum_Validation_Strategy( |
|
38 | - isset($input_settings['validation_error_message']) |
|
39 | - ? $input_settings['validation_error_message'] |
|
40 | - : null |
|
41 | - ), |
|
42 | - ) |
|
43 | - ) |
|
44 | - ); |
|
45 | - $this->_multiple_selections = true; |
|
46 | - parent::__construct($answer_options, $input_settings); |
|
47 | - } |
|
20 | + /** |
|
21 | + * @param array $answer_options |
|
22 | + * @param array $input_settings |
|
23 | + */ |
|
24 | + public function __construct($answer_options, $input_settings = array()) |
|
25 | + { |
|
26 | + $this->_select_button_text = EEH_Array::is_set( |
|
27 | + $input_settings, |
|
28 | + 'select_button_text', |
|
29 | + esc_html__('Select', 'event_espresso') |
|
30 | + ); |
|
31 | + $display_strategy = new EE_Checkbox_Dropdown_Selector_Display_Strategy(); |
|
32 | + $this->_set_display_strategy($display_strategy); |
|
33 | + $this->load_iframe_assets($display_strategy); |
|
34 | + $this->_add_validation_strategy( |
|
35 | + new EE_Many_Valued_Validation_Strategy( |
|
36 | + array( |
|
37 | + new EE_Enum_Validation_Strategy( |
|
38 | + isset($input_settings['validation_error_message']) |
|
39 | + ? $input_settings['validation_error_message'] |
|
40 | + : null |
|
41 | + ), |
|
42 | + ) |
|
43 | + ) |
|
44 | + ); |
|
45 | + $this->_multiple_selections = true; |
|
46 | + parent::__construct($answer_options, $input_settings); |
|
47 | + } |
|
48 | 48 | |
49 | - /* |
|
49 | + /* |
|
50 | 50 | * Returns the text to display in the select button |
51 | 51 | */ |
52 | - public function select_button_text() |
|
53 | - { |
|
54 | - return $this->_select_button_text; |
|
55 | - } |
|
52 | + public function select_button_text() |
|
53 | + { |
|
54 | + return $this->_select_button_text; |
|
55 | + } |
|
56 | 56 | |
57 | - /* |
|
57 | + /* |
|
58 | 58 | * add css and js for iframes |
59 | 59 | */ |
60 | - protected function load_iframe_assets(EE_Checkbox_Dropdown_Selector_Display_Strategy $display_strategy) |
|
61 | - { |
|
62 | - add_filter( |
|
63 | - 'FHEE__EED_Ticket_Selector__ticket_selector_iframe__css', |
|
64 | - array($display_strategy, 'iframe_css') |
|
65 | - ); |
|
66 | - add_filter( |
|
67 | - 'FHEE__EED_Ticket_Selector__ticket_selector_iframe__js', |
|
68 | - array($display_strategy, 'iframe_js') |
|
69 | - ); |
|
70 | - add_filter( |
|
71 | - 'FHEE__EventEspresso_modules_events_archive_EventsArchiveIframe__display__css', |
|
72 | - array($display_strategy, 'iframe_css') |
|
73 | - ); |
|
74 | - add_filter( |
|
75 | - 'FHEE__EventEspresso_modules_events_archive_EventsArchiveIframe__display__js', |
|
76 | - array($display_strategy, 'iframe_js') |
|
77 | - ); |
|
78 | - } |
|
60 | + protected function load_iframe_assets(EE_Checkbox_Dropdown_Selector_Display_Strategy $display_strategy) |
|
61 | + { |
|
62 | + add_filter( |
|
63 | + 'FHEE__EED_Ticket_Selector__ticket_selector_iframe__css', |
|
64 | + array($display_strategy, 'iframe_css') |
|
65 | + ); |
|
66 | + add_filter( |
|
67 | + 'FHEE__EED_Ticket_Selector__ticket_selector_iframe__js', |
|
68 | + array($display_strategy, 'iframe_js') |
|
69 | + ); |
|
70 | + add_filter( |
|
71 | + 'FHEE__EventEspresso_modules_events_archive_EventsArchiveIframe__display__css', |
|
72 | + array($display_strategy, 'iframe_css') |
|
73 | + ); |
|
74 | + add_filter( |
|
75 | + 'FHEE__EventEspresso_modules_events_archive_EventsArchiveIframe__display__js', |
|
76 | + array($display_strategy, 'iframe_js') |
|
77 | + ); |
|
78 | + } |
|
79 | 79 | } |
@@ -11,42 +11,42 @@ |
||
11 | 11 | class EE_Button_Input extends EE_Form_Input_Base |
12 | 12 | { |
13 | 13 | |
14 | - /** |
|
15 | - * @var string of HTML to put between the button tags |
|
16 | - */ |
|
17 | - protected $_button_content; |
|
18 | - /** |
|
19 | - * @param array $options |
|
20 | - */ |
|
21 | - public function __construct($options = array()) |
|
22 | - { |
|
23 | - if (empty($options['button_content'])) { |
|
24 | - $options['button_content'] = esc_html__('Button', 'event_espresso'); |
|
25 | - } |
|
26 | - $this->_set_display_strategy(new EE_Button_Display_Strategy()); |
|
27 | - $this->_set_normalization_strategy(new EE_Text_Normalization()); |
|
28 | - $this->_add_validation_strategy(new EE_Plaintext_Validation_Strategy()); |
|
29 | - parent::__construct($options); |
|
30 | - } |
|
14 | + /** |
|
15 | + * @var string of HTML to put between the button tags |
|
16 | + */ |
|
17 | + protected $_button_content; |
|
18 | + /** |
|
19 | + * @param array $options |
|
20 | + */ |
|
21 | + public function __construct($options = array()) |
|
22 | + { |
|
23 | + if (empty($options['button_content'])) { |
|
24 | + $options['button_content'] = esc_html__('Button', 'event_espresso'); |
|
25 | + } |
|
26 | + $this->_set_display_strategy(new EE_Button_Display_Strategy()); |
|
27 | + $this->_set_normalization_strategy(new EE_Text_Normalization()); |
|
28 | + $this->_add_validation_strategy(new EE_Plaintext_Validation_Strategy()); |
|
29 | + parent::__construct($options); |
|
30 | + } |
|
31 | 31 | |
32 | 32 | |
33 | 33 | |
34 | - /** |
|
35 | - * Sets the button content |
|
36 | - * @see EE_Button_Input::$_button_content |
|
37 | - * @param string $new_content |
|
38 | - */ |
|
39 | - public function set_button_content($new_content) |
|
40 | - { |
|
41 | - $this->_button_content = $new_content; |
|
42 | - } |
|
34 | + /** |
|
35 | + * Sets the button content |
|
36 | + * @see EE_Button_Input::$_button_content |
|
37 | + * @param string $new_content |
|
38 | + */ |
|
39 | + public function set_button_content($new_content) |
|
40 | + { |
|
41 | + $this->_button_content = $new_content; |
|
42 | + } |
|
43 | 43 | |
44 | - /** |
|
45 | - * Gets the button content |
|
46 | - * @return string |
|
47 | - */ |
|
48 | - public function button_content() |
|
49 | - { |
|
50 | - return $this->_button_content; |
|
51 | - } |
|
44 | + /** |
|
45 | + * Gets the button content |
|
46 | + * @return string |
|
47 | + */ |
|
48 | + public function button_content() |
|
49 | + { |
|
50 | + return $this->_button_content; |
|
51 | + } |
|
52 | 52 | } |
@@ -11,17 +11,17 @@ |
||
11 | 11 | class EE_Submit_Input extends EE_Form_Input_Base |
12 | 12 | { |
13 | 13 | |
14 | - /** |
|
15 | - * @param array $options |
|
16 | - */ |
|
17 | - public function __construct($options = array()) |
|
18 | - { |
|
19 | - if (empty($options['default'])) { |
|
20 | - $options['default'] = esc_html__('Submit', 'event_espresso'); |
|
21 | - } |
|
22 | - $this->_set_display_strategy(new EE_Submit_Input_Display_Strategy()); |
|
23 | - $this->_set_normalization_strategy(new EE_Text_Normalization()); |
|
24 | - $this->_add_validation_strategy(new EE_Plaintext_Validation_Strategy()); |
|
25 | - parent::__construct($options); |
|
26 | - } |
|
14 | + /** |
|
15 | + * @param array $options |
|
16 | + */ |
|
17 | + public function __construct($options = array()) |
|
18 | + { |
|
19 | + if (empty($options['default'])) { |
|
20 | + $options['default'] = esc_html__('Submit', 'event_espresso'); |
|
21 | + } |
|
22 | + $this->_set_display_strategy(new EE_Submit_Input_Display_Strategy()); |
|
23 | + $this->_set_normalization_strategy(new EE_Text_Normalization()); |
|
24 | + $this->_add_validation_strategy(new EE_Plaintext_Validation_Strategy()); |
|
25 | + parent::__construct($options); |
|
26 | + } |
|
27 | 27 | } |
@@ -14,15 +14,15 @@ |
||
14 | 14 | class EE_Checkbox_Multi_Input extends EE_Form_Input_With_Options_Base |
15 | 15 | { |
16 | 16 | |
17 | - /** |
|
18 | - * @param array $input_settings |
|
19 | - * @param array | EE_Question_Option[] $answer_options |
|
20 | - */ |
|
21 | - public function __construct($answer_options, $input_settings = array()) |
|
22 | - { |
|
23 | - $this->_set_display_strategy(new EE_Checkbox_Display_Strategy()); |
|
24 | - $this->_add_validation_strategy(new EE_Many_Valued_Validation_Strategy(array( new EE_Enum_Validation_Strategy(isset($input_settings['validation_error_message']) ? $input_settings['validation_error_message'] : null) ))); |
|
25 | - $this->_multiple_selections = true; |
|
26 | - parent::__construct($answer_options, $input_settings); |
|
27 | - } |
|
17 | + /** |
|
18 | + * @param array $input_settings |
|
19 | + * @param array | EE_Question_Option[] $answer_options |
|
20 | + */ |
|
21 | + public function __construct($answer_options, $input_settings = array()) |
|
22 | + { |
|
23 | + $this->_set_display_strategy(new EE_Checkbox_Display_Strategy()); |
|
24 | + $this->_add_validation_strategy(new EE_Many_Valued_Validation_Strategy(array( new EE_Enum_Validation_Strategy(isset($input_settings['validation_error_message']) ? $input_settings['validation_error_message'] : null) ))); |
|
25 | + $this->_multiple_selections = true; |
|
26 | + parent::__construct($answer_options, $input_settings); |
|
27 | + } |
|
28 | 28 | } |
@@ -21,7 +21,7 @@ |
||
21 | 21 | public function __construct($answer_options, $input_settings = array()) |
22 | 22 | { |
23 | 23 | $this->_set_display_strategy(new EE_Checkbox_Display_Strategy()); |
24 | - $this->_add_validation_strategy(new EE_Many_Valued_Validation_Strategy(array( new EE_Enum_Validation_Strategy(isset($input_settings['validation_error_message']) ? $input_settings['validation_error_message'] : null) ))); |
|
24 | + $this->_add_validation_strategy(new EE_Many_Valued_Validation_Strategy(array(new EE_Enum_Validation_Strategy(isset($input_settings['validation_error_message']) ? $input_settings['validation_error_message'] : null)))); |
|
25 | 25 | $this->_multiple_selections = true; |
26 | 26 | parent::__construct($answer_options, $input_settings); |
27 | 27 | } |
@@ -9,36 +9,36 @@ |
||
9 | 9 | class EE_Month_Input extends EE_Select_Input |
10 | 10 | { |
11 | 11 | |
12 | - /** |
|
13 | - * @param bool $leading_zero |
|
14 | - * @param array $input_settings |
|
15 | - * @param bool $january_is_month_1 whether january should have value of 1; or it should be month 0 |
|
16 | - */ |
|
17 | - public function __construct($leading_zero = false, $input_settings = array(), $january_is_month_1 = true) |
|
18 | - { |
|
19 | - $key_begin_range = $january_is_month_1 ? 1 : 0; |
|
20 | - $key_range = range($key_begin_range, $key_begin_range + 11); |
|
21 | - if ($leading_zero) { |
|
22 | - array_walk($key_range, array( $this, '_zero_pad' )); |
|
23 | - } |
|
24 | - $value_range = range(1, 12); |
|
25 | - array_walk($value_range, array( $this, '_zero_pad' )); |
|
26 | - parent::__construct( |
|
27 | - array_combine( |
|
28 | - $key_range, |
|
29 | - $value_range |
|
30 | - ), |
|
31 | - $input_settings |
|
32 | - ); |
|
33 | - } |
|
12 | + /** |
|
13 | + * @param bool $leading_zero |
|
14 | + * @param array $input_settings |
|
15 | + * @param bool $january_is_month_1 whether january should have value of 1; or it should be month 0 |
|
16 | + */ |
|
17 | + public function __construct($leading_zero = false, $input_settings = array(), $january_is_month_1 = true) |
|
18 | + { |
|
19 | + $key_begin_range = $january_is_month_1 ? 1 : 0; |
|
20 | + $key_range = range($key_begin_range, $key_begin_range + 11); |
|
21 | + if ($leading_zero) { |
|
22 | + array_walk($key_range, array( $this, '_zero_pad' )); |
|
23 | + } |
|
24 | + $value_range = range(1, 12); |
|
25 | + array_walk($value_range, array( $this, '_zero_pad' )); |
|
26 | + parent::__construct( |
|
27 | + array_combine( |
|
28 | + $key_range, |
|
29 | + $value_range |
|
30 | + ), |
|
31 | + $input_settings |
|
32 | + ); |
|
33 | + } |
|
34 | 34 | |
35 | - /** |
|
36 | - * Changes int 1 to 01, etc. Useful with array_walk |
|
37 | - * @param int $input |
|
38 | - * @param mixed $key |
|
39 | - */ |
|
40 | - protected function _zero_pad(&$input, $key) |
|
41 | - { |
|
42 | - $input = str_pad($input, 2, '0', STR_PAD_LEFT); |
|
43 | - } |
|
35 | + /** |
|
36 | + * Changes int 1 to 01, etc. Useful with array_walk |
|
37 | + * @param int $input |
|
38 | + * @param mixed $key |
|
39 | + */ |
|
40 | + protected function _zero_pad(&$input, $key) |
|
41 | + { |
|
42 | + $input = str_pad($input, 2, '0', STR_PAD_LEFT); |
|
43 | + } |
|
44 | 44 | } |
@@ -19,10 +19,10 @@ |
||
19 | 19 | $key_begin_range = $january_is_month_1 ? 1 : 0; |
20 | 20 | $key_range = range($key_begin_range, $key_begin_range + 11); |
21 | 21 | if ($leading_zero) { |
22 | - array_walk($key_range, array( $this, '_zero_pad' )); |
|
22 | + array_walk($key_range, array($this, '_zero_pad')); |
|
23 | 23 | } |
24 | 24 | $value_range = range(1, 12); |
25 | - array_walk($value_range, array( $this, '_zero_pad' )); |
|
25 | + array_walk($value_range, array($this, '_zero_pad')); |
|
26 | 26 | parent::__construct( |
27 | 27 | array_combine( |
28 | 28 | $key_range, |
@@ -10,15 +10,15 @@ |
||
10 | 10 | class EE_Credit_Card_Year_Input extends EE_Year_Input |
11 | 11 | { |
12 | 12 | |
13 | - /** |
|
14 | - * @param array $input_settings |
|
15 | - * @param bool $four_digit_year |
|
16 | - * @param int $years_behind |
|
17 | - * @param int $years_ahead |
|
18 | - */ |
|
19 | - public function __construct($input_settings = array(), $four_digit_year = true, $years_behind = 0, $years_ahead = 15) |
|
20 | - { |
|
21 | - $this->set_sensitive_data_removal_strategy(new EE_All_Sensitive_Data_Removal()); |
|
22 | - parent::__construct($input_settings, $four_digit_year, $years_behind, $years_ahead); |
|
23 | - } |
|
13 | + /** |
|
14 | + * @param array $input_settings |
|
15 | + * @param bool $four_digit_year |
|
16 | + * @param int $years_behind |
|
17 | + * @param int $years_ahead |
|
18 | + */ |
|
19 | + public function __construct($input_settings = array(), $four_digit_year = true, $years_behind = 0, $years_ahead = 15) |
|
20 | + { |
|
21 | + $this->set_sensitive_data_removal_strategy(new EE_All_Sensitive_Data_Removal()); |
|
22 | + parent::__construct($input_settings, $four_digit_year, $years_behind, $years_ahead); |
|
23 | + } |
|
24 | 24 | } |
@@ -10,16 +10,16 @@ |
||
10 | 10 | class EE_Credit_Card_Input extends EE_Form_Input_Base |
11 | 11 | { |
12 | 12 | |
13 | - /** |
|
14 | - * @param array $input_settings |
|
15 | - */ |
|
16 | - public function __construct($input_settings = array()) |
|
17 | - { |
|
18 | - $input_settings['required'] = isset($input_settings['required']) ? $input_settings['required'] : true; |
|
19 | - $this->_set_display_strategy(new EE_Text_Input_Display_Strategy()); |
|
20 | - $this->_set_normalization_strategy(new EE_Credit_Card_Normalization()); |
|
21 | - $this->_add_validation_strategy(new EE_Credit_Card_Validation_Strategy(isset($input_settings['validation_error_message']) ? $input_settings['validation_error_message'] : null)); |
|
22 | - $this->set_sensitive_data_removal_strategy(new EE_Credit_Card_Sensitive_Data_Removal()); |
|
23 | - parent::__construct($input_settings); |
|
24 | - } |
|
13 | + /** |
|
14 | + * @param array $input_settings |
|
15 | + */ |
|
16 | + public function __construct($input_settings = array()) |
|
17 | + { |
|
18 | + $input_settings['required'] = isset($input_settings['required']) ? $input_settings['required'] : true; |
|
19 | + $this->_set_display_strategy(new EE_Text_Input_Display_Strategy()); |
|
20 | + $this->_set_normalization_strategy(new EE_Credit_Card_Normalization()); |
|
21 | + $this->_add_validation_strategy(new EE_Credit_Card_Validation_Strategy(isset($input_settings['validation_error_message']) ? $input_settings['validation_error_message'] : null)); |
|
22 | + $this->set_sensitive_data_removal_strategy(new EE_Credit_Card_Sensitive_Data_Removal()); |
|
23 | + parent::__construct($input_settings); |
|
24 | + } |
|
25 | 25 | } |
@@ -12,35 +12,35 @@ |
||
12 | 12 | { |
13 | 13 | |
14 | 14 | |
15 | - /** |
|
16 | - * @param array $input_settings |
|
17 | - */ |
|
18 | - public function __construct($input_settings = array()) |
|
19 | - { |
|
20 | - $this->_set_display_strategy( |
|
21 | - new EE_Number_Input_Display_Strategy( |
|
22 | - isset($input_settings['min_value']) |
|
23 | - ? $input_settings['min_value'] |
|
24 | - : null, |
|
25 | - isset($input_settings['max_value']) |
|
26 | - ? $input_settings['max_value'] |
|
27 | - : null |
|
28 | - ) |
|
29 | - ); |
|
30 | - $this->_set_normalization_strategy( |
|
31 | - new EE_Int_Normalization( |
|
32 | - isset($input_settings['validation_error_message']) |
|
33 | - ? $input_settings['validation_error_message'] |
|
34 | - : null |
|
35 | - ) |
|
36 | - ); |
|
37 | - $this->_add_validation_strategy( |
|
38 | - new EE_Int_Validation_Strategy( |
|
39 | - isset($input_settings['validation_error_message']) |
|
40 | - ? $input_settings['validation_error_message'] |
|
41 | - : null |
|
42 | - ) |
|
43 | - ); |
|
44 | - parent::__construct($input_settings); |
|
45 | - } |
|
15 | + /** |
|
16 | + * @param array $input_settings |
|
17 | + */ |
|
18 | + public function __construct($input_settings = array()) |
|
19 | + { |
|
20 | + $this->_set_display_strategy( |
|
21 | + new EE_Number_Input_Display_Strategy( |
|
22 | + isset($input_settings['min_value']) |
|
23 | + ? $input_settings['min_value'] |
|
24 | + : null, |
|
25 | + isset($input_settings['max_value']) |
|
26 | + ? $input_settings['max_value'] |
|
27 | + : null |
|
28 | + ) |
|
29 | + ); |
|
30 | + $this->_set_normalization_strategy( |
|
31 | + new EE_Int_Normalization( |
|
32 | + isset($input_settings['validation_error_message']) |
|
33 | + ? $input_settings['validation_error_message'] |
|
34 | + : null |
|
35 | + ) |
|
36 | + ); |
|
37 | + $this->_add_validation_strategy( |
|
38 | + new EE_Int_Validation_Strategy( |
|
39 | + isset($input_settings['validation_error_message']) |
|
40 | + ? $input_settings['validation_error_message'] |
|
41 | + : null |
|
42 | + ) |
|
43 | + ); |
|
44 | + parent::__construct($input_settings); |
|
45 | + } |
|
46 | 46 | } |