| @@ -41,12 +41,12 @@ | ||
| 41 | 41 | /** |
| 42 | 42 | * The controller data. It will handle the options from multiple instances of the controller |
| 43 | 43 | * |
| 44 | 44 | * @var array Option data { |
| 45 | - * | |
| 46 | 45 | * @type array $options_data[ '[instance1-option_name_provided_via-->config-option-name]' ] { |
| 47 | 46 | * @type string $execution-frequency Values example: '1 day' | '10 days' | '1 week' | '10 weeks' | '1 month' | '10 months' | '1 year' | '10 years' |
| 48 | 47 | * } |
| 48 | + * | |
| 49 | 49 | * @type array $options_data[ '[instance2-option_name_provided_via-->config-option-name]' ] { |
| 50 | 50 | * @type string $execution-frequency Values example: '1 day' | '10 days' | '1 week' | '10 weeks' | '1 month' | '10 months' | '1 year' | '10 years' |
| 51 | 51 | * } |
| 52 | 52 | * } |
| @@ -52,11 +52,8 @@ | ||
| 52 | 52 | * } |
| 53 | 53 | */ |
| 54 | 54 | private $options_data = array(); |
| 55 | 55 | |
| 56 | - /** | |
| 57 | - * @param array $config | |
| 58 | - */ | |
| 59 | 56 | public function __construct( $config = array() ) { |
| 60 | 57 | if ( ! isset( $config['config-option-name'] ) || ! isset( $config['execution-frequency'] ) ) { |
| 61 | 58 | return; |
| 62 | 59 | } |
| @@ -130,9 +127,9 @@ | ||
| 130 | 127 | * |
| 131 | 128 | * @return void |
| 132 | 129 | */ |
| 133 | 130 | private function update_options_data() { |
| 134 | - update_option( $this->option_meta_name, $this->options_data, false ); | |
| 131 | + update_option( $this->option_meta_name, $this->options_data, 'no' ); | |
| 135 | 132 | } |
| 136 | 133 | |
| 137 | 134 | /** |
| 138 | 135 | * Open overlay. |
| @@ -147,9 +144,8 @@ | ||
| 147 | 144 | * @type string $buttons[]['url'] URL for the button. |
| 148 | 145 | * @type string $buttons[]['target'] Target attribute for the button link. |
| 149 | 146 | * @type string $buttons[]['label'] Label/text of the button. |
| 150 | 147 | * } |
| 151 | - * | |
| 152 | 148 | * @return bool |
| 153 | 149 | */ |
| 154 | 150 | public function open_overlay( $data = array() ) { |
| 155 | 151 | if ( true === $this->recurring_execution ) { |