. */ /** * CIA_history object, extends CIA * stores old[=modified or deleted] CIA sentences after Agora */ class CIA_history extends CIA { /* id*/ private $id; /* CIA_id*/ private $cia_id; public function __construct($data) { parent::__construct($data); if( is_array($data) ) { $this->id = $data['id']; $this->cia_id = $data['cia_id']; } else { $this->id= ''; $this->cia_id = ''; } } /* contructor 2*/ public function __construct(CIA $cia) { $this->id=''; $this->cia_id = $cia->getId(); $this->category = $cia->getCategory(); $this->title = $cia->getTitle(); $this->order = $cia->getOrder(); $this->last_change = $cia->getLast_Change(); $this->title2 = $cia->getTitle2(); $this->order2 = $cia->getOrder2(); $this->article = $cia->getArticle(); $this->article_title = $cia->getArticle_title(); $this->paragraph = $cia->getParagraph(); $this->sentence = $cia->getSentence(); $this->sentence_text = $cia->getSentence_text(); $this->agora_id_start = $cia->getAgora_id_start(); $this->agora_id_end = $cia->getAgora_id_end(); } public function getID() { return $this->id; } public function setID($id) { $this->id = $id; } public function getCia_id() { return $this->cia_id; } public function setCia_id($cia_id) { $this->cia_id = $cia_id; } } ?>