. */ require_once(FILESYSTEMROOTPATH."include/model/AbstractMySQL.php"); class Elections_Bodies extends AbstractMySQL { /** id */ private $id; /** elections id */ private $election_id; private $bodyCode; private $votes; private $uid1; private $uid2; private $uid3; private $votes1; private $votes2; private $votes3; /* constructor*/ public function __construct($data) { parent::__construct($data); if( is_array($data) ) { $this->id = $data['id']; $this->election_id = $data['election_id']; $this->bodyCode = $data['bodyCode']; $this->votes = $data['votes']; $this->uid1 = $data['uid1']; $this->uid2 = $data['uid2']; $this->uid3 = $data['uid3']; $this->votes1 = $data['votes1']; $this->votes2 = $data['votes2']; $this->votes3 = $data['votes3']; } else { $this->id = ''; $this->election_id = ''; $this->bodyCode = ''; $this->votes = ''; $this->uid1 = ''; $this->uid2 = ''; $this->uid3 = ''; $this->votes1 = ''; $this->votes2 = ''; $this->votes3 = ''; } } public function getId() { return $this->id; } public function setId($id) { $this->id = $id; } public function getElection_id() { return $this->election_id; } public function setElection_id($election_id) { $this->election_id = $election_id; } public function getBodyCode() { return $this->bodyCode; } public function setBodyCode($bodyCode) { $this->bodyCode = $bodyCode; } public function getVotes() { return $this->votes; } public function setVotes($votes) { $this->votes = $votes; } public function getUid1() { return $this->uid1; } public function setUid1($uid1) { $this->uid1 = $uid1; } public function getUid2() { return $this->uid2; } public function setUid2($uid2) { $this->uid2 = $uid2; } public function getUid3() { return $this->uid3; } public function setUid3($uid3) { $this->uid3 = $uid3; } public function getVotes1() { return $this->votes1; } public function setVotes1($votes1) { $this->votes1 = $votes1; } public function getVotes2() { return $this->votes2; } public function setVotes2($votes2) { $this->votes2 = $votes2; } public function getVotes3() { return $this->votes3; } public function setVotes3($votes3) { $this->votes3 = $votes3; } } ?>