ParamsInterface
- Full name:
\PhalconKit\Mvc\Controller\Traits\Interfaces\ParamsInterface
Methods
getParam
public getParam(string $key, array|string|null $filters = null, mixed $default = null, ?array $params = null): mixed
Parameters:
| Parameter | Type | Description |
|---|---|---|
$key | string | |
$filters | array|string|null | |
$default | mixed | |
$params | ?array |
hasParam
public hasParam(string $key, ?array $params = null, bool $cached = true): bool
Parameters:
| Parameter | Type | Description |
|---|---|---|
$key | string | |
$params | ?array | |
$cached | bool |
getParams
public getParams(?array $fields = null, bool $cached = true, bool $deep = true): array
Parameters:
| Parameter | Type | Description |
|---|---|---|
$fields | ?array | |
$cached | bool | |
$deep | bool |
getAllParams
public getAllParams(?array $filters = null, bool $cached = true, bool $deep = true): array
Parameters:
| Parameter | Type | Description |
|---|---|---|
$filters | ?array | |
$cached | bool | |
$deep | bool |
applyFilters
public applyFilters(array<string,mixed> $params, array<string,array|string> $filters, bool $deep = true): array<string,mixed>
Parameters:
| Parameter | Type | Description |
|---|---|---|
$params | array | |
$filters | array | |
$deep | bool |
setDefaultFilters
public setDefaultFilters(array<string,array|string> $filters): static
Parameters:
| Parameter | Type | Description |
|---|---|---|
$filters | array |
addDefaultFilters
public addDefaultFilters(array<string,array|string> $filters): static
Parameters:
| Parameter | Type | Description |
|---|---|---|
$filters | array |
removeFilters
public removeFilters(string|array<int,string> $keys): static
Parameters:
| Parameter | Type | Description |
|---|---|---|
$keys | string|array |
clearDefaultFilters
public clearDefaultFilters(): static
getDefaultFilters
public getDefaultFilters(): array
getRawParams
public getRawParams(bool $cached = true): array
Parameters:
| Parameter | Type | Description |
|---|---|---|
$cached | bool |