/** * @param DATABASE $db Database from which to load values. */ public function load($db) { parent::load($db); $this->time_created->set_from_iso($db->f('time_created')); $this->time_modified->set_from_iso($db->f('time_modified')); $this->creator_id = $db->f('creator_id'); $this->modifier_id = $db->f('modifier_id'); }
/** * @param DATABASE $db */ public function load($db) { parent::load($db); $this->branch_id = $db->f('branch_id'); $this->summary = $db->f('summary'); $this->time_next_deadline->set_from_iso($db->f('time_next_deadline')); $this->time_scheduled->set_from_iso($db->f('time_scheduled')); $this->time_shipped->set_from_iso($db->f('time_shipped')); $this->time_testing_scheduled->set_from_iso($db->f('time_testing_scheduled')); $this->time_tested->set_from_iso($db->f('time_tested')); }
/** * @param DATABASE $db Database from which to load values. */ public function load($db) { parent::load($db); $this->object_type = $db->f('object_type'); $this->object_id = $db->f('object_id'); $this->user_id = $db->f('user_id'); $this->time_created->set_from_iso($db->f('time_created')); $this->publication_state = $db->f('publication_state'); $this->access_id = $db->f('access_id'); $this->kind = $db->f('kind'); $this->title = $db->f('title'); $this->description = $db->f('description'); $this->system_description = $db->f('system_description'); }
/** * @param DATABASE $db */ public function load($db) { parent::load($db); $this->status = $db->f('branch_status'); $this->time_status_changed->set_from_iso($db->f('branch_time_status_changed')); $this->priority = $db->f('branch_priority'); $this->time_closed->set_from_iso($db->f('branch_time_closed')); $this->closer_id = $db->f('branch_closer_id'); }
/** * @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')); } }
/** * @param DATABASE $db */ public function load($db) { parent::load($db); $this->date->set_from_iso($db->f('date')); }
/** * Read a time value from the EXIF data block. * Date/times are stored in a non-standard format and must be parsed to create a usable time object. * @param string $exif_time * @return DATE_TIME * @access private */ protected function _time_from_exif($exif_time) { $Result = new DATE_TIME(); $Result->clear(); if ($exif_time) { $exif_pieces = explode(' ', $exif_time); if (sizeof($exif_pieces) == 2) { $d = str_replace(':', '-', $exif_pieces[0]); $t = trim($exif_pieces[1]); } $Result->set_from_iso($d . ' ' . $t); } return $Result; }
/** * @param DATABASE $db */ public function load($db) { parent::load($db); $this->time_applied->set_from_iso($db->f('branch_time_applied')); $this->applier_id = $db->f('branch_applier_id'); }
/** * @param DATABASE $db Database from which to load values. */ public function load($db) { parent::load($db); $this->publisher_id = $db->f('publisher_id'); $this->time_published->set_from_iso($db->f('time_published')); }
/** * @param DATABASE $db Database from which to load values. */ public function load($db) { parent::load($db); $this->title = $db->f('title'); $this->renderer_class_name = $db->f('renderer_class_name'); $this->main_CSS_file_name = $db->f('main_CSS_file_name'); $this->font_name_CSS_file_name = $db->f('font_name_CSS_file_name'); $this->font_size_CSS_file_name = $db->f('font_size_CSS_file_name'); $this->icon_set = $db->f('icon_set'); $this->icon_extension = $db->f('icon_extension'); $this->time_created->set_from_iso($db->f('time_created')); }