global = get_option(self::OK_GLOBAL, []); $this->enabled = get_option(self::OK_PROVIDER_ENABLED, []); $this->providers = get_option(self::OK_PROVIDER, []); $this->styles = get_option(self::OK_STYLES, []); } public function get_enabled_providers() { return $this->enabled; } public function update_enabled_providers($val) { $this->enabled = $val; update_option(self::OK_PROVIDER_ENABLED, $val, true); return $this; } public function get_provider_settings() { return $this->providers; } public function update_provider_settings($val) { $this->providers = $val; update_option(self::OK_PROVIDER, $val, true); return $this; } public function get_style_settings() { return $this->styles; } public function update_style_settings($val) { $this->styles = $val; update_option(self::OK_STYLES, $val, true); return $this; } public function get_global_settings() { return $this->global; } public function update_global_settings($val) { $this->global = $val; update_option(self::OK_GLOBAL, $val, true); return $this; } }