PHP 클래스 Stevemo\Cpanel\Group\Repo\GroupRepository

상속: implements Stevemo\Cpanel\Group\Repo\CpanelGroupInterface
파일 보기 프로젝트 열기: stevemo/cpanel

보호된 프로퍼티들

프로퍼티 타입 설명
$event Illuminate\Events\Dispatcher
$sentry Cartalyst\Sentry\Sentry

공개 메소드들

메소드 설명
__construct ( Cartalyst\Sentry\Sentry $sentry, Illuminate\Events\Dispatcher $event )
create ( array $attributes ) : Cartalyst\Sentry\Groups\GroupInterface Creates a group.
delete ( $id ) : void Delete a group
findAll ( ) : array Returns all groups.
findById ( integer $id ) : Cartalyst\Sentry\Groups\GroupInterface Find the group by ID.
findByName ( string $name ) : Cartalyst\Sentry\Groups\GroupInterface Find the group by name.
update ( array $attributes ) : boolean Update a group

메소드 상세

__construct() 공개 메소드

public __construct ( Cartalyst\Sentry\Sentry $sentry, Illuminate\Events\Dispatcher $event )
$sentry Cartalyst\Sentry\Sentry
$event Illuminate\Events\Dispatcher

create() 공개 메소드

Creates a group.
저자: Steve Montambeault
public create ( array $attributes ) : Cartalyst\Sentry\Groups\GroupInterface
$attributes array
리턴 Cartalyst\Sentry\Groups\GroupInterface

delete() 공개 메소드

Delete a group
저자: Steve Montambeault
public delete ( $id ) : void
$id
리턴 void

findAll() 공개 메소드

Returns all groups.
저자: Steve Montambeault
public findAll ( ) : array
리턴 array $groups

findById() 공개 메소드

Find the group by ID.
저자: Steve Montambeault
public findById ( integer $id ) : Cartalyst\Sentry\Groups\GroupInterface
$id integer
리턴 Cartalyst\Sentry\Groups\GroupInterface $group

findByName() 공개 메소드

Find the group by name.
저자: Steve Montambeault
public findByName ( string $name ) : Cartalyst\Sentry\Groups\GroupInterface
$name string
리턴 Cartalyst\Sentry\Groups\GroupInterface $group

update() 공개 메소드

Update a group
저자: Steve Montambeault
public update ( array $attributes ) : boolean
$attributes array
리턴 boolean

프로퍼티 상세

$event 보호되어 있는 프로퍼티

protected Dispatcher,Illuminate\Events $event
리턴 Illuminate\Events\Dispatcher

$sentry 보호되어 있는 프로퍼티

protected Sentry,Cartalyst\Sentry $sentry
리턴 Cartalyst\Sentry\Sentry