PHP 인터페이스 Silber\Bouncer\Contracts\CachedClipboard

상속: extends Silber\Bouncer\Contracts\Clipboard
파일 보기 프로젝트 열기: JosephSilber/bouncer

공개 메소드들

메소드 설명
getAbilities ( Model $authority, boolean $allowed = true ) : Illuminate\Database\Eloquent\Collection Get the given authority's abilities.
getCache ( ) : Illuminate\Contracts\Cache\Store Get the cache instance.
getFreshAbilities ( Model $authority, boolean $allowed ) : Illuminate\Database\Eloquent\Collection Get a fresh copy of the given authority's abilities.
getRoles ( Model $authority ) : Collection Get the given authority's roles.
refresh ( null | Model $authority = null ) Clear the cache.
refreshFor ( Model $authority ) Clear the cache for the given authority.
setCache ( Illuminate\Contracts\Cache\Store $cache ) Set the cache instance.

메소드 상세

getAbilities() 공개 메소드

Get the given authority's abilities.
public getAbilities ( Model $authority, boolean $allowed = true ) : Illuminate\Database\Eloquent\Collection
$authority Illuminate\Database\Eloquent\Model
$allowed boolean
리턴 Illuminate\Database\Eloquent\Collection

getCache() 공개 메소드

Get the cache instance.
public getCache ( ) : Illuminate\Contracts\Cache\Store
리턴 Illuminate\Contracts\Cache\Store

getFreshAbilities() 공개 메소드

Get a fresh copy of the given authority's abilities.
public getFreshAbilities ( Model $authority, boolean $allowed ) : Illuminate\Database\Eloquent\Collection
$authority Illuminate\Database\Eloquent\Model
$allowed boolean
리턴 Illuminate\Database\Eloquent\Collection

getRoles() 공개 메소드

Get the given authority's roles.
public getRoles ( Model $authority ) : Collection
$authority Illuminate\Database\Eloquent\Model
리턴 Illuminate\Support\Collection

refresh() 공개 메소드

Clear the cache.
public refresh ( null | Model $authority = null )
$authority null | Illuminate\Database\Eloquent\Model

refreshFor() 공개 메소드

Clear the cache for the given authority.
public refreshFor ( Model $authority )
$authority Illuminate\Database\Eloquent\Model

setCache() 공개 메소드

Set the cache instance.
public setCache ( Illuminate\Contracts\Cache\Store $cache )
$cache Illuminate\Contracts\Cache\Store