Skip to content

ModelInterface

  • Full name: \Zemit\Mvc\Controller\Traits\Interfaces\ModelInterface

Methods

getModelName

public getModelName(): ?string

setModelName

public setModelName(?string $modelName = null): void

Parameters:

Parameter Type Description
$modelName ?string

getModelNamespaces

public getModelNamespaces(): array

setModelNamespaces

public setModelNamespaces(?array $modelNamespaces = []): void

Parameters:

Parameter Type Description
$modelNamespaces ?array

getModelNameFromController

public getModelNameFromController(?array $namespaces = null, string $needle = 'Models'): ?string

Parameters:

Parameter Type Description
$namespaces ?array
$needle string

getControllerName

public getControllerName(): string

loadModel

public loadModel(?string $modelName = null): \Phalcon\Mvc\ModelInterface

Parameters:

Parameter Type Description
$modelName ?string