Mvc\Model\Binder

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

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部