/** * @param ConfigBean $configBean */ public function save(ConfigBean $configBean) { global $wpdb; $success = $wpdb->update($this->tableName(), array('value' => $configBean->isSplash_active() ? 'true' : 'false'), array('param' => 'splash_active'), $format = null, $where_format = null); $success = $wpdb->update($this->tableName(), array('value' => $configBean->isWsi_first_load_mode_active() ? 'true' : 'false'), array('param' => 'wsi_first_load_mode_active'), $format = null, $where_format = null); // Update class instance $this->configBean = $configBean; }