Method |
Description |
|
__construct ( Request $request, string $name, array $options = [] ) |
Counter constructor. |
|
add ( string $targetId, Xpressengine\User\UserInterface $user = null, string $option = '', integer $point = 1 ) : void |
add log |
|
get ( string $targetId, Xpressengine\User\UserInterface $user = null, string $option = '' ) : CounterLog | null |
get log |
|
getByName ( string $targetId, Xpressengine\User\UserInterface $user = null ) : CounterLog | null |
get log by name
옵션을 사용하는 Counter 에서 로그를 확인 할 때
등록된 옵션은 제외하고 확인하려고 할 수 있음 |
|
getModel ( ) : string |
The name of CounterLog model class |
|
getName ( ) : string |
get name |
|
getOptions ( ) : array |
get options |
|
getPoint ( string $targetId, string $option = '' ) : integer |
get point sum |
|
getUsers ( string $targetId, string $option = '' ) : array |
get users |
|
has ( string $targetId, Xpressengine\User\UserInterface $user = null, string $option = '' ) : boolean |
has log |
|
hasByName ( string $targetId, Xpressengine\User\UserInterface $user = null ) : boolean |
has by name |
|
newModel ( ) : CounterLog |
Create model instance |
|
putPoint ( string $targetId, Xpressengine\User\UserInterface $user = null, string $option = '', integer $point = 1 ) : void |
put log |
|
remove ( string $targetId, Xpressengine\User\UserInterface $user = null, string $option = '' ) : void |
remove log |
|
setGuest ( boolean $use = true ) : void |
비회원 지원 설정 |
|