UserFrosting API

DefaultGroups extends BaseSeed

Seeder for the default groups.

Table of Contents

$ci ContainerInterface
run() Function used to execute the seed. mixed
getGroups() array
__construct() Constructor. mixed
validateMigrationDependencies() Validate if a specific set of migrations have been ran. bool
run() Function used to execute the seed. mixed

Properties

Methods

run()

Function used to execute the seed.

public run( ) : mixed
Return values
mixed

getGroups()

protected getGroups( ) : array
Return values
array

Groups to seed

__construct()

Constructor.

public __construct( $ci : ContainerInterface ) : mixed
Parameters
$ci : ContainerInterface
Return values
mixed

validateMigrationDependencies()

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
throws
Exception

If dependent migration is not available

Return values
bool

True on success

run()

Function used to execute the seed.

public abstract run( ) : mixed
Return values
mixed

Search results