/** * @param SQL_STORAGE $storage Store values to this object. */ public function store_to($storage) { parent::store_to($storage); $table_name = $this->secondary_table_name(); $storage->add($table_name, 'time_needed', Field_type_date_time, $this->time_needed); $storage->add($table_name, 'time_assignee_changed', Field_type_date_time, $this->time_assignee_changed); $storage->add($table_name, 'assignee_id', Field_type_integer, $this->assignee_id); $storage->add($table_name, 'reporter_id', Field_type_integer, $this->reporter_id); $storage->add($table_name, 'status', Field_type_integer, $this->_main_branch_info->status); $storage->add($table_name, 'priority', Field_type_integer, $this->_main_branch_info->priority); $storage->add($table_name, 'closer_id', Field_type_integer, $this->_main_branch_info->closer_id); if ($this->_main_branch_info->closer_id) { $storage->add($table_name, 'time_closed', Field_type_date_time, $this->_main_branch_info->time_closed); } $storage->add($table_name, 'time_status_changed', Field_type_date_time, $this->_main_branch_info->time_status_changed); }
/** * @param SQL_STORAGE $storage Store values to this object. */ public function store_to($storage) { parent::store_to($storage); $tname = $this->secondary_table_name(); $storage->add($tname, 'number', Field_type_integer, $this->number, Storage_action_create); $storage->add($tname, 'job_id', Field_type_integer, $this->job_id); $storage->add($tname, 'files', Field_type_string, $this->files); $storage->add($tname, 'applier_id', Field_type_integer, $this->_main_branch_info->applier_id); $storage->add($tname, 'time_applied', Field_type_date_time, $this->_main_branch_info->time_applied); }