AbstractModel
- Full name:
\PhalconKit\Mvc\Controller\Traits\Abstracts\AbstractModel
Methods
getModelName
public getModelName(): ?string
setModelName
public setModelName(?string $modelName): void
- This method is abstract. Parameters:
| Parameter | Type | Description |
$modelName | ?string | |
getModelNamespaces
public getModelNamespaces(): array
setModelNamespaces
public setModelNamespaces(?array $modelNamespaces): void
- This method is abstract. Parameters:
| Parameter | Type | Description |
$modelNamespaces | ?array | |
getModelNameFromController
public getModelNameFromController(?array $namespaces = null, string $needle = 'Models'): ?string
- This method is abstract. Parameters:
| Parameter | Type | Description |
$namespaces | ?array | |
$needle | string | |
getControllerName
public getControllerName(): string
loadModel
public loadModel(?string $modelName = null): \Phalcon\Mvc\ModelInterface
- This method is abstract. Parameters:
| Parameter | Type | Description |
$modelName | ?string | |
appendModelName
public appendModelName(string $field, ?string $modelName = null): string
- This method is abstract. Parameters:
| Parameter | Type | Description |
$field | string | |
$modelName | ?string | |