PHP Класс Stevemo\Cpanel\Group\Repo\GroupRepository

Наследование: implements Stevemo\Cpanel\Group\Repo\CpanelGroupInterface
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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