Пример #1
0
 /**
  * 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);
 }
Пример #2
0
 /**
  * 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);
 }