DefaultPermissions extends BaseSeed
Seeder for the default permissions.
Table of Contents
$ci | ContainerInterface | |
---|---|---|
run() | Function used to execute the seed. | mixed |
getPermissions() | array | |
savePermissions() | Save permissions. | mixed |
syncPermissionsRole() | Sync permissions with default roles. | mixed |
__construct() | Constructor. | mixed |
validateMigrationDependencies() | Validate if a specific set of migrations have been ran. | bool |
run() | Function used to execute the seed. | mixed |
Properties
$ci
protected
ContainerInterface
$ci
Methods
run()
Function used to execute the seed.
public
run(
)
: mixed
Return values
mixedgetPermissions()
protected
getPermissions(
)
: array
Return values
array —Permissions to seed
savePermissions()
Save permissions.
protected
savePermissions(
&$permissions :
array
)
: mixed
Parameters
- $permissions : array
Return values
mixedsyncPermissionsRole()
Sync permissions with default roles.
protected
syncPermissionsRole(
$permissions :
array
)
: mixed
Parameters
- $permissions : array
Return values
mixed__construct()
Constructor.
public
__construct(
$ci :
ContainerInterface
)
: mixed
Parameters
- $ci : ContainerInterface
Return values
mixedvalidateMigrationDependencies()
Validate if a specific set of migrations have been ran.
protected
validateMigrationDependencies(
$migrations :
string|array
)
: bool
Parameters
- $migrations : string|array
List of migraiton or specific migration required
Tags
Return values
bool —True on success
run()
Function used to execute the seed.
public
abstract run(
)
: mixed