class SeedRepository (View source)

Writes the PermissionCatalogue seed data into freshly created Poweradmin tables.

Methods

__construct(PDO $db, string $dbType)

No description

void
seedPermissions()

No description

array
seedDefaultTemplates()

Creates the default user and group permission templates with their permissions, and the default user groups backed by the group templates.

void
createAdminUser(string $passwordHash, int $permTemplId)

No description

Details

__construct(PDO $db, string $dbType)

No description

Parameters

PDO $db
string $dbType

void seedPermissions()

No description

Return Value

void

array seedDefaultTemplates()

Creates the default user and group permission templates with their permissions, and the default user groups backed by the group templates.

Return Value

array

template name => perm_templ id

void createAdminUser(string $passwordHash, int $permTemplId)

No description

Parameters

string $passwordHash
int $permTemplId

Return Value

void