W3cubDocs

/Phalcon 3

Class Phalcon\Mvc\Model\Binder

implements Phalcon\Mvc\Model\BinderInterface

Source on GitHub

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 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

© 2011–2017 Phalcon Framework Team
Licensed under the Creative Commons Attribution License 3.0.
https://docs.phalconphp.com/en/latest/api/Phalcon_Mvc_Model_Binder.html