Skip to content

UserTrait

  • Full name: \Zemit\Modules\Cli\Tasks\Traits\UserTrait

Properties

tables

public array $tables

Methods

initialize

public initialize(): void

getDefinitions

public getDefinitions(): mixed

createAction

final public createAction(string $email, ?string $password = null): mixed
  • This method is final.

Parameters:

Parameter Type Description
$email string
$password ?string

roleAction

final public roleAction(string $username, string $role): mixed
  • This method is final.

Parameters:

Parameter Type Description
$username string
$role string

passwordAction

final public passwordAction(?string $username = null, ?string $password = null): array
  • This method is final.

Parameters:

Parameter Type Description
$username ?string
$password ?string

addModelsPermissions

public addModelsPermissions(?array $tables = null): void

Parameters:

Parameter Type Description
$tables ?array