get() public method

get log
public get ( string $targetId, Xpressengine\User\UserInterface $user = null, string $option = '' ) : CounterLog | null
$targetId string target id
$user Xpressengine\User\UserInterface user instance
$option string counter option
return Xpressengine\Counter\Models\CounterLog | null
Esempio n. 1
0
 /**
  * 참여 정보 반환
  *
  * @param string        $id     document id
  * @param MemberEntityInterface $author user instance
  * @return array|null
  */
 public function get($id, MemberEntityInterface $author)
 {
     $this->counter->init(self::COUNTER_NAME);
     return $this->counter->get($id, $author);
 }