<?php
/**
 * Copyright 2009, 2010 AEGEE-Europe
 *
 * This file is part of AEGEE-Europe Online Membership System.
 *
 * AEGEE-Europe Online Membership System is free software: you can
 * redistribute it and/or modify it under the terms of the GNU General
 * Public License as published by the Free Software Foundation, either
 * version 3 of the License, or (at your option) any later version.
 *
 * AEGEE-Europe Online Membership System is distributed in the hope
 * that it will be useful, but WITHOUT ANY WARRANTY; without even the
 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
 * PURPOSE.  See the GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with AEGEE-Europe Online Membership System.  If not, see
 * <http://www.gnu.org/licenses/>.
 */

/**
 * 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;
	}
	
}
?>