Skip to content

UserTask

Properties

cliDoc

public string $cliDoc

Inherited 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

beforeExecuteRoute

public beforeExecuteRoute(): void

helpAction

public helpAction(): void

mainAction

public mainAction(): ?array

normalizeResponse

public normalizeResponse(bool $response = true, ?int $code = null, ?string $status = null): array

Parameters:

Parameter Type Description
$response bool
$code ?int
$status ?string

afterExecuteRoute

Handle rest response automagically

public afterExecuteRoute(\Phalcon\Cli\Dispatcher $dispatcher): void

Parameters:

Parameter Type Description
$dispatcher \Phalcon\Cli\Dispatcher

Throws: