. */ /** * Agorae object. */ require_once(FILESYSTEMROOTPATH."include/model/AbstractMySQL.php"); class Votes extends AbstractMySQL { /** id */ private $id; private $uid; private $bodyCode; private $proposal_id; private $type; private $vote; private $submit_date; /** * Constructor */ public function __construct($data) { parent::__construct($data); if( is_array($data) ) { $this->id = $data['id']; $this->uid = $data['uid']; $this->bodyCode = $data['bodyCode']; $this->proposal_id = $data['proposal_id']; $this->type = $data['type']; $this->vote = $data['vote']; $this->submit_date = $data['submit_date']; } else { $this->id = ''; $this->uid = ''; $this->bodyCode = ''; $this->proposal_id = ''; $this->type = ''; $this->vote = ''; $this->submit_date = ''; } } public function getId() { return $this->id; } public function setId($id) { $this->id = $id; } public function getUid() { return $this->uid; } public function setUid($uid) { $this->uid = $uid; } public function getBodyCode() { return $this->bodyCode; } public function setBodyCode($bodyCode) { $this->bodyCode = $bodyCode; } public function getProposal_id() { return $this->proposal_id; } public function setProposal_id($proposal_id) { $this->proposal_id = $proposal_id; } public function getType() { return $this->type; } public function setType($type) { $this->type = $type; } public function getVote() { return $this->vote; } public function setVote($vote) { $this->vote = $vote; } public function getSubmit_date() { return $this->submit_date; } public function setSubmit_date($submit_date) { $this->submit_date = $submit_date; } } ?>