Esempio n. 1
0
 /**
  * 참여 여부 반환
  *
  * @param string                $id     document id
  * @param MemberEntityInterface $author user instance
  * @return bool
  */
 public function invoked($id, MemberEntityInterface $author)
 {
     // Guest 는 참여안한 것으로 처리하고 투표할 때 접근할 수 없도록 처리
     if ($author instanceof Guest) {
         return false;
     }
     $this->counter->init(self::COUNTER_NAME);
     return $this->counter->invoked($id, $author);
 }
Esempio n. 2
0
 /**
  * 참여 여부 반환
  *
  * @param string                $id     document id
  * @param MemberEntityInterface $author user instance
  * @return bool
  */
 public function invoked($id, MemberEntityInterface $author)
 {
     $this->init();
     return $this->counter->invoked($id, $author);
 }