AbstractModel
- Full name:
\Zemit\Mvc\Controller\Traits\Abstracts\AbstractModel
Methods
getModelName
public getModelName(): ?string
- This method is abstract.
setModelName
public setModelName(?string $modelName): void
- This method is abstract.
Parameters:
Parameter | Type | Description |
---|---|---|
$modelName | ?string |
getModelNamespaces
public getModelNamespaces(): array
- This method is abstract.
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
- This method is abstract.
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 |