Exemplo n.º 1
0
 /**
  * Store the form's values to this album.
  * @param ALBUM $obj
  * @access private
  */
 protected function _store_to_object($obj)
 {
     $obj->url_root = $this->value_as_text('url_root');
     $obj->location = $this->value_as_text('location');
     /** @var DATE_TIME $first_day_value */
     $first_day_value = $this->value_for('first_day');
     /** @var DATE_TIME $last_day_value */
     $last_day_value = $this->value_for('last_day');
     $obj->show_times = $this->value_for('show_times');
     $obj->show_celsius = $this->value_for('show_celsius');
     $obj->set_date_style($this->value_for('date_style'), $first_day_value, $last_day_value);
     $obj->main_picture_id = $this->value_for('main_picture_id');
     if ($this->value_for('constrain_picture_size')) {
         $obj->max_picture_width = $this->value_for('max_picture_width');
         $obj->max_picture_height = $this->value_for('max_picture_height');
     } else {
         $obj->max_picture_width = 0;
         $obj->max_picture_height = 0;
     }
     parent::_store_to_object($obj);
 }