这个 zend update 语句的流程是什么
我知道这个语句更新了zend框架中的记录。但我想了解这句话的完整流程。声明是
$request->update($data,$request->getAdapter()->quoteInto('id = ?',$this->getRequest()->getParam('selected_id'))) )
$data
is the array of records that is passed to it and $request
is the object of model. I want to know whole meaning of this statementI know that this statement updates the record in the zend framework. But I want to understand the complete flow of this statement. Statement is
$request->update($data,$request->getAdapter()->quoteInto('id = ?',$this->getRequest()->getParam('selected_id'))) )
$data
is the array of records that is passed to it and $request
is the object of model. I want to know whole meaning of this statement
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如您所知,更新语句使用
$table->update($data, $where);
$request
是数据库表模型。->getAdapter
获取 适配器。另外
quoteInto()
最好由文档定义最后一个表达式
$this->getRequest()->getParam('selected_id')
。$this->getRequest()
获取请求$_GET
类型getParam('selected_id'))
获取selected_idGET
对象的 code>。As you know update statement uses
$table->update($data, $where);
$request
is db table model.->getAdapter
gets the adapter.Also
quoteInto()
is best defined as by documentationAnd the last expression
$this->getRequest()->getParam('selected_id')
.$this->getRequest()
gets the request$_GET
typeAnd
getParam('selected_id'))
fetchesselected_id
ofGET
object.