. */ /** * CIA object. */ require_once(FILESYSTEMROOTPATH."include/model/AbstractMySQL.php"); class CIA extends AbstractMySQL { /** id */ private $id; /**/ private $abs_order; /** Category */ private $category; /** Title */ private $title; /** order*/ private $order; /** Last Change*/ private $last_change; /** Secondary Title */ private $title2; /** title2 order*/ private $order2; /** Article Number*/ private $article; /** Article Title*/ private $article_title; /** Paragraph Number*/ private $paragraph; /** Sentence Number */ private $sentence; /** Sentence*/ private $sentence_text; /*TO DO: * We can change in database schema 'sentence' from VARCHAR(5000) to TEXT*/ /** agora_id where the sentence was introduced*/ private $agora_id_start; /** last agora_id where the sentence was valid*/ private $agora_id_end; /** previous sentence that was replaced by this one*/ private $history_id; /** * Constructor */ public function __construct($data) { parent::__construct($data); if( is_array($data) ) { $this->id = $data['id']; $this->abs_order = $data['abs_order']; $this->category = $data['category']; $this->title = $data['title']; $this->order = $data['order']; $this->last_change = $data['last_change']; $this->title2 = $data['title2']; $this->order2 = $data['order2']; $this->article = $data['article']; $this->article_title = $data['article_title']; $this->paragraph = $data['paragraph']; $this->sentence = $data['sentence']; $this->sentence_text = $data['sentence_text']; $this->agora_id_start = $data['agora_id_start']; $this->agora_id_end = $data['agora_id_end']; $this->history_id = $data['history_id']; }else { $this->id = ''; $this->abs_order; $this->category = ''; $this->title = ''; $this->order = ''; $this->last_change = ''; $this->title2 = ''; $this->order2 = 0; $this->article = ''; $this->article_title = ''; $this->paragraph = ''; $this->sentence = ''; $this->sentence_text = ''; $this->agora_id_start = ''; $this->agora_id_end = ''; $this->history_id = ''; } } /** * Destructor */ public function __destruct() { } /** * toString method */ public function __toString() { } public function getId() { return $this->id; } public function setId($id) { $this->id = $id; } public function getAbs_order() { return $this->abs_order; } public function setAbs_order($abs_order) { $this->abs_order = $abs_order; } public function getCategory() { return $this->category; } public function setCategory($category) { $this->category = $category; } public function getTitle() { return $this->title; } public function setTitle($title) { $this->title = $title; } public function getOrder() { return $this->order; } public function setOrder($order) { $this->order = $order; } public function getLast_change() { return $this->last_change; } public function setLast_change($last_change) { $this->last_change = $last_change; } public function getTitle2() { return $this->title2; } public function setTitle2($title2) { $this->title2 = $title2; } public function getOrder2() { return $this->order2; } public function setOrder2($order2) { $this->order2 = $order2; } public function getArticle() { return $this->article; } public function setArticle($article) { $this->article = $article; } public function getArticle_title() { return $this->article_title; } public function setArticle_title($article_title) { $this->article_title = $article_title; } public function getParagraph() { return $this->paragraph; } public function setParagraph($paragraph) { $this->paragraph = $paragraph; } public function getSentence() { return $this->sentence; } public function setSentence($sentence) { $this->sentence = $sentence; } public function getSentence_text() { return $this->sentence_text; } public function setSentence_text($sentence_text) { $this->sentence_text = $sentence_text; } public function getAgora_id_start() { return $this->agora_id_start; } public function setAgora_id_start($agora_id_start) { $this->agora_id_start = $agora_id_start; } public function getAgora_id_end() { return $this->agora_id_end; } public function setAgora_id_end($agora_id_end) { $this->agora_id_end = $agora_id_end; } public function getHistory_id() { return $this->history_id; } public function setHistory_id($history_id) { $this->history_id = $history_id; } } ?>