function __construct() { $this->data = Datahandler::FetchDataPoll(); $this->id = $this->data['poll_id']; $this->statement = $this->data['statement']; $this->name = $this->data['poll_name']; $this->voterefs = Datahandler::FetchVoteRefsPoll($this->id); }