/** * Save the video status * @return void */ public function save() { // save the parent object and thus the status table parent::save(); // grab the newly inserted status ID $id = $this->getID(); // insert into the video status table, using the same ID $extended = array(); $extended['id'] = $id; $extended['video_id'] = $this->video_id; $this->registry->getObject('db')->insertRecords('statuses_videos', $extended); }
/** * Save the link status * @return void */ public function save() { // save the parent object and thus the status table parent::save(); // grab the newly inserted status ID $id = $this->getID(); // insert into the link status table, using the same ID $extended = array(); $extended['id'] = $id; $extended['URL'] = $this->url; $extended['description'] = $this->description; $this->registry->getObject('db')->insertRecords('statuses_links', $extended); }