/**
  * @param SQL_STORAGE $storage Store values to this object.
  */
 public function store_to($storage)
 {
     parent::store_to($storage);
     $storage->add($this->table_name(), 'type', Field_type_string, $this->type, Storage_action_create);
     $tname = $this->secondary_table_name();
     $storage->add($tname, 'entry_id', Field_type_integer, $this->entry_id, Storage_action_create);
     $storage->restrict($tname, 'entry_id');
 }
Exemplo n.º 2
0
 /**
  * @param SQL_STORAGE $storage Store values to this object.
  * @access private
  */
 public function store_to($storage)
 {
     parent::store_to($storage);
     $tname = $this->table_name();
     $storage->add($tname, 'time_published', Field_type_date_time, $this->time_published);
     $storage->add($tname, 'publisher_id', Field_type_integer, $this->publisher_id);
 }