Skip to content

DataLifeCycleTask

Properties

cliDoc

public string $cliDoc

models

public ?array $models

policies

public ?array $policies

Methods

initialize

public initialize(): void

mainAction

Default action

public mainAction(string $tables): ?array

Parameters:

Parameter Type Description
$tables string

modelsAction

public modelsAction(string $tables): array

Parameters:

Parameter Type Description
$tables string

addModelsPermissions

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

Parameters:

Parameter Type Description
$models ?array

Inherited methods

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: