/**
  * Load initial properties from this journal entry.
  * @param JOURNAL $obj
  */
 public function load_from_object($obj)
 {
     parent::load_from_object($obj);
     $this->set_value('weather_type', $obj->weather_type);
     $this->set_value('weather', $obj->weather);
     $this->set_value('lo_temp', $obj->lo_temp);
     $this->set_value('hi_temp', $obj->hi_temp);
 }
 /**
  * Load initial properties from this picture.
  * @param PICTURE $obj
  */
 public function load_from_object($obj)
 {
     parent::load_from_object($obj);
     /** @var ALBUM $folder */
     $folder = $this->_folder;
     $this->set_value('thumbnail_size', 200);
     $this->set_value('file_name', $obj->file_name);
     $this->set_required('file_name', !$folder->uploads_allowed());
     $this->set_value('overwrite', true);
     $this->set_value('use_upload', false);
     $this->set_value('create_thumbnail', false);
     $this->set_value('read_exif', false);
 }