PHP Class Stevemo\Cpanel\Group\Repo\GroupRepository

Inheritance: implements Stevemo\Cpanel\Group\Repo\CpanelGroupInterface
Afficher le fichier Open project: stevemo/cpanel

Protected Properties

Свойство Type Description
$event Illuminate\Events\Dispatcher
$sentry Cartalyst\Sentry\Sentry

Méthodes publiques

Méthode Description
__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

Method Details

__construct() public méthode

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

create() public méthode

Creates a group.
Author: Steve Montambeault
public create ( array $attributes ) : Cartalyst\Sentry\Groups\GroupInterface
$attributes array
Résultat Cartalyst\Sentry\Groups\GroupInterface

delete() public méthode

Delete a group
Author: Steve Montambeault
public delete ( $id ) : void
$id
Résultat void

findAll() public méthode

Returns all groups.
Author: Steve Montambeault
public findAll ( ) : array
Résultat array $groups

findById() public méthode

Find the group by ID.
Author: Steve Montambeault
public findById ( integer $id ) : Cartalyst\Sentry\Groups\GroupInterface
$id integer
Résultat Cartalyst\Sentry\Groups\GroupInterface $group

findByName() public méthode

Find the group by name.
Author: Steve Montambeault
public findByName ( string $name ) : Cartalyst\Sentry\Groups\GroupInterface
$name string
Résultat Cartalyst\Sentry\Groups\GroupInterface $group

update() public méthode

Update a group
Author: Steve Montambeault
public update ( array $attributes ) : boolean
$attributes array
Résultat boolean

Property Details

$event protected_oe property

protected Dispatcher,Illuminate\Events $event
Résultat Illuminate\Events\Dispatcher

$sentry protected_oe property

protected Sentry,Cartalyst\Sentry $sentry
Résultat Cartalyst\Sentry\Sentry