Class Phalcon\Mvc\Model\Binder¶
implements Phalcon\Mvc\Model\BinderInterface
Phalcon\Mvc\Model\Binding
This is an class for binding models into params for handler
Methods¶
public getBoundModels ()
Array for storing active bound models
public getOriginalValues ()
Array for original values
public __construct ([Phalcon\Cache\BackendInterface $cache])
Phalcon\Mvc\Model\Binder constructor
public setCache (Phalcon\Cache\BackendInterface $cache)
Gets cache instance
public getCache ()
Sets cache instance
public bindToHandler (mixed $handler, array $params, mixed $cacheKey, [mixed $methodName])
Bind models into params in proper handler
protected findBoundModel (mixed $paramValue, mixed $className)
Find the model by param value.
protected getParamsFromCache (mixed $cacheKey)
Get params classes from cache by key
protected getParamsFromReflection (mixed $handler, array $params, mixed $cacheKey, mixed $methodName)
Get modified params for handler using reflection
Interface Phalcon\Mvc\Model\Binder\BindableInterface¶
Methods¶
abstract public getModelName ()
...
Interface Phalcon\Mvc\Model\BinderInterface¶
Methods¶
abstract public getBoundModels ()
...
abstract public getCache ()
...
abstract public setCache (Phalcon\Cache\BackendInterface $cache)
...
abstract public bindToHandler (mixed $handler, array $params, mixed $cacheKey, [mixed $methodName])
...