Manager
- Full name:
\Zemit\Mvc\Model\Manager
- Parent class:
Manager
- This class implements:
\Zemit\Mvc\Model\ManagerInterface
Methods
getBehaviors
public getBehaviors(): array
setBehaviors
public setBehaviors(array $behaviors): void
Parameters:
Parameter | Type | Description |
---|---|---|
$behaviors | array |
getBehavior
Get a behavior using the behavior name
public getBehavior(\Phalcon\Mvc\ModelInterface $model, string $behaviorName): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$model | \Phalcon\Mvc\ModelInterface | |
$behaviorName | string |
setBehavior
Set a behavior using the behavior name
public setBehavior(\Phalcon\Mvc\ModelInterface $model, string $behaviorName, \Phalcon\Mvc\Model\BehaviorInterface $behavior): void
Parameters:
Parameter | Type | Description |
---|---|---|
$model | \Phalcon\Mvc\ModelInterface | |
$behaviorName | string | |
$behavior | \Phalcon\Mvc\Model\BehaviorInterface |
hasBehavior
Return true if the behavior is set
public hasBehavior(\Phalcon\Mvc\ModelInterface $model, string $behaviorName): bool
Parameters:
Parameter | Type | Description |
---|---|---|
$model | \Phalcon\Mvc\ModelInterface | |
$behaviorName | string |