/** * @param DATABASE $db */ public function load($db) { $this->options_id = $db->f('options_id'); $this->trunk_id = $db->f('trunk_id'); parent::load($db); }
/** * @param DATABASE $db */ public function load($db) { parent::load($db); $this->location = $db->f('location'); $this->url_root = strtolower($db->f('url_root')); $this->main_picture_id = $db->f('main_picture_id'); $this->show_celsius = $db->f('show_celsius'); $this->show_times = $db->f('show_times'); $this->max_picture_width = $db->f('max_picture_width'); $this->max_picture_height = $db->f('max_picture_height'); $this->first_day_mode = $db->f('first_day_mode'); $this->last_day_mode = $db->f('last_day_mode'); $this->first_day->set_from_iso($db->f('first_day')); if ($this->last_day_mode == Day_mode_today) { $this->last_day->set_now(); } else { $this->last_day->set_from_iso($db->f('last_day')); } }