PHP Class Stevemo\Cpanel\Group\Repo\GroupRepository

Inheritance: implements Stevemo\Cpanel\Group\Repo\CpanelGroupInterface
Mostra file Open project: stevemo/cpanel

Protected Properties

Property Type Description
$event Illuminate\Events\Dispatcher
$sentry Cartalyst\Sentry\Sentry

Public Methods

Method 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 method

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

create() public method

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

delete() public method

Delete a group
Author: Steve Montambeault
public delete ( $id ) : void
$id
return void

findAll() public method

Returns all groups.
Author: Steve Montambeault
public findAll ( ) : array
return array $groups

findById() public method

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

findByName() public method

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

update() public method

Update a group
Author: Steve Montambeault
public update ( array $attributes ) : boolean
$attributes array
return boolean

Property Details

$event protected_oe property

protected Dispatcher,Illuminate\Events $event
return Illuminate\Events\Dispatcher

$sentry protected_oe property

protected Sentry,Cartalyst\Sentry $sentry
return Cartalyst\Sentry\Sentry