PHP Interface Stevemo\Cpanel\Group\Repo\CpanelGroupInterface

Datei anzeigen Open project: stevemo/cpanel Interface Usage Examples

Public Methods

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

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