protected function getVoteInstalled()
 {
     Yii::import("application.modules.vote.components.ICVotePlugManager");
     $installed = new ICVotePlugManager();
     $installed->setInit("vote");
     return $installed->getInit();
 }
Beispiel #2
0
 private function clickVote()
 {
     if ($this->getVoteInstalled()) {
         $relatedId = EnvUtil::getRequest("relatedid");
         $voteItemids = EnvUtil::getRequest("voteItemids");
         $result = ICVotePlugManager::getArticleVote()->clickVote("article", $relatedId, $voteItemids);
         if (is_numeric($result)) {
             echo $result;
         } else {
             $this->ajaxReturn($result);
         }
     }
 }