/** * @param SQL_STORAGE $storage Store values to this object. * @access private */ public function store_to($storage) { parent::store_to($storage); $tname = $this->secondary_table_name(); $storage->add($tname, 'branch_status', Field_type_integer, $this->status); $storage->add($tname, 'branch_priority', Field_type_integer, $this->priority); $storage->add($tname, 'branch_closer_id', Field_type_integer, $this->closer_id); if ($this->closer_id) { $storage->add($tname, 'branch_time_closed', Field_type_date_time, $this->time_closed); } $storage->add($tname, 'branch_time_status_changed', Field_type_date_time, $this->time_status_changed); }
/** * @param SQL_STORAGE $storage Store values to this object. * @access private */ public function store_to($storage) { parent::store_to($storage); $tname = $this->secondary_table_name(); $storage->add($tname, 'branch_applier_id', Field_type_integer, $this->applier_id); $storage->add($tname, 'branch_time_applied', Field_type_date_time, $this->time_applied); }