/** * @param SQL_STORAGE $storage Store values to this object. */ public function store_to($storage) { $this->prepare_for_storage(); parent::store_to($storage); $tname = $this->table_name(); $storage->add($tname, 'object_type', Field_type_string, $this->object_type, Storage_action_create); $storage->add($tname, 'object_id', Field_type_integer, $this->object_id, Storage_action_create); $storage->add($tname, 'user_id', Field_type_integer, $this->user_id, Storage_action_create); $storage->add($tname, 'time_created', Field_type_date_time, $this->time_created, Storage_action_create); $storage->add($tname, 'access_id', Field_type_integer, $this->access_id, Storage_action_create); $storage->add($tname, 'publication_state', Field_type_string, $this->publication_state); $storage->add($tname, 'kind', Field_type_string, $this->kind); $storage->add($tname, 'title', Field_type_string, $this->title); $storage->add($tname, 'description', Field_type_string, $this->description); $storage->add($tname, 'system_description', Field_type_string, $this->system_description, Storage_action_create); }
/** * @param SQL_STORAGE $storage Store values to this object. * @access private */ public function store_to($storage) { if (!$this->entry_id) { $entry = $this->entry(); $this->assert($entry->exists(), 'Entry does not exist (cannot store branch information).', 'store_to', 'PROJECT_ENTRY_BRANCH_INFO'); $this->entry_id = $entry->id; } parent::store_to($storage); $tname = $this->table_name(); $storage->add($tname, 'entry_id', Field_type_integer, $this->entry_id); $storage->add($tname, 'branch_id', Field_type_integer, $this->branch_id); $storage->add($tname, 'branch_release_id', Field_type_integer, $this->release_id); $tname = $this->secondary_table_name(); $storage->restrict($tname, 'entry_to_branch_id'); $storage->add($tname, 'entry_to_branch_id', Field_type_integer, $this->entry_to_branch_id, Storage_action_create); }
/** * @param SQL_STORAGE $storage Store values to this object. */ public function store_to($storage) { parent::store_to($storage); $tname = $this->table_name(); $storage->add($tname, 'time_created', Field_type_date_time, $this->time_created, Storage_action_create); $storage->add($tname, 'creator_id', Field_type_integer, $this->creator_id, Storage_action_create); $storage->add($tname, 'time_modified', Field_type_date_time, $this->time_modified); $storage->add($tname, 'modifier_id', Field_type_integer, $this->modifier_id); }
/** * @param SQL_STORAGE $storage Store values to this object. */ public function store_to($storage) { parent::store_to($storage); $tname = $this->table_name(); $storage->add($tname, 'send_as_html', Field_type_boolean, $this->send_as_html); $storage->add($tname, 'preferred_text_length', Field_type_integer, $this->preferred_text_length); $storage->add($tname, 'send_own_changes', Field_type_boolean, $this->send_own_changes); $storage->add($tname, 'max_individual_messages', Field_type_integer, $this->max_individual_messages); $storage->add($tname, 'max_items_per_message', Field_type_integer, $this->max_items_per_message); $storage->add($tname, 'min_hours_to_wait', Field_type_integer, $this->min_hours_to_wait); $storage->add($tname, 'group_history_items', Field_type_boolean, $this->group_history_items); $storage->add($tname, 'show_history_items', Field_type_boolean, $this->show_history_items); $storage->add($tname, 'show_history_item_as_subject', Field_type_boolean, $this->show_history_item_as_subject); $storage->add($tname, 'time_messages_sent', Field_type_date_time, $this->time_messages_sent); $storage->add($tname, 'queued_history_item_ids', Field_type_string, $this->queued_history_item_ids); $storage->add($tname, 'email', Field_type_string, $this->email); }
/** * @param SQL_STORAGE $storage Store values to this object. */ public function store_to($storage) { parent::store_to($storage); $table_name = $this->table_name(); $storage->add($table_name, 'title', Field_type_string, $this->title); $storage->add($table_name, 'category', Field_type_string, $this->category); $storage->add($table_name, 'url', Field_type_string, $this->url); }
/** * @param SQL_STORAGE $storage Store values to this object. */ public function store_to($storage) { parent::store_to($storage); $tname = $this->table_name(); $storage->add($tname, 'title', Field_type_string, $this->title); $storage->add($tname, 'renderer_class_name', Field_type_string, $this->renderer_class_name); $storage->add($tname, 'main_CSS_file_name', Field_type_string, $this->main_CSS_file_name); $storage->add($tname, 'font_name_CSS_file_name', Field_type_string, $this->font_name_CSS_file_name); $storage->add($tname, 'font_size_CSS_file_name', Field_type_string, $this->font_size_CSS_file_name); $storage->add($tname, 'icon_set', Field_type_string, $this->icon_set); $storage->add($tname, 'icon_extension', Field_type_string, $this->icon_extension); $storage->add($tname, 'time_created', Field_type_date_time, $this->time_created, Storage_action_create); }