/**
  * @param SplashImageBean $splashImageBean
  */
 public function save(SplashImageBean $splashImageBean)
 {
     global $wpdb;
     $wpdb->update($this->tableName(), array('url_splash_image' => $splashImageBean->getUrl_splash_image(), 'splash_image_width' => $splashImageBean->getSplash_image_width(), 'splash_image_height' => $splashImageBean->getSplash_image_height(), 'wsi_margin_top' => $splashImageBean->getWsi_margin_top(), 'splash_color' => $splashImageBean->getSplash_color(), 'wsi_display_time' => $splashImageBean->getWsi_display_time(), 'wsi_picture_link_url' => $splashImageBean->getWsi_picture_link_url(), 'wsi_picture_link_target' => $splashImageBean->getWsi_picture_link_target(), 'wsi_type' => $splashImageBean->getWsi_type(), 'wsi_opacity' => $splashImageBean->getWsi_opacity(), 'wsi_idle_time' => $splashImageBean->getWsi_idle_time() == '' ? 0 : $splashImageBean->getWsi_idle_time(), 'datepicker_start' => $splashImageBean->getDatepicker_start(), 'datepicker_end' => $splashImageBean->getDatepicker_end(), 'wsi_close_on_esc_function' => $splashImageBean->isWsi_close_on_esc_function() ? '1' : '0', 'wsi_close_on_click_function' => $splashImageBean->isWsi_close_on_click_function() ? '1' : '0', 'wsi_hide_cross' => $splashImageBean->isWsi_hide_cross() ? '1' : '0', 'wsi_disable_shadow_border' => $splashImageBean->isWsi_disable_shadow_border() ? '1' : '0', 'wsi_youtube_autoplay' => $splashImageBean->isWsi_youtube_autoplay() ? '1' : '0', 'wsi_youtube_loop' => $splashImageBean->isWsi_youtube_loop() ? '1' : '0', 'wsi_fixed_splash' => $splashImageBean->isWsi_fixed_splash() ? '1' : '0', 'wsi_display_always' => $splashImageBean->isWsi_display_always() ? '1' : '0', 'wsi_hide_on_mobile_devices' => $splashImageBean->isWsi_hide_on_mobile_devices() ? '1' : '0', 'wsi_youtube' => $splashImageBean->getWsi_youtube(), 'wsi_yahoo' => $splashImageBean->getWsi_yahoo(), 'wsi_dailymotion' => $splashImageBean->getWsi_dailymotion(), 'wsi_metacafe' => $splashImageBean->getWsi_metacafe(), 'wsi_swf' => $splashImageBean->getWsi_swf(), 'wsi_html' => $splashImageBean->getWsi_html(), 'wsi_include_url' => $splashImageBean->getWsi_include_url()), array('id' => $splashImageBean->getId()), $format = null, $where_format = null);
     // Dates management
     if ($splashImageBean->getDatepicker_start() == null) {
         $query_reset_Datepicker_start = "update " . $this->tableName() . " set datepicker_start = null;";
         $wpdb->query($query_reset_Datepicker_start);
     }
     if ($splashImageBean->getDatepicker_end() == null) {
         $query_reset_Datepicker_end = "update " . $this->tableName() . " set datepicker_end = null;";
         $wpdb->query($query_reset_Datepicker_end);
     }
     // Update class instance
     $this->splashImageBean = $splashImageBean;
 }