Example #1
0
 /**
  * Add vote to poll
  *
  * @return unknown
  */
 public function addVote(Mage_Poll_Model_Poll_Vote $vote)
 {
     if ($this->hasAnswer($vote->getPollAnswerId())) {
         $vote->setPollId($this->getId())->save();
         $this->setVoted();
     }
     return $this;
 }
Example #2
0
 protected function _construct()
 {
     return parent::_construct();
 }