• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP EditableSaver类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中EditableSaver的典型用法代码示例。如果您正苦于以下问题:PHP EditableSaver类的具体用法?PHP EditableSaver怎么用?PHP EditableSaver使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了EditableSaver类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: actionEditableSaver

 public function actionEditableSaver()
 {
     Yii::import('EditableSaver');
     //or you can add import 'ext.editable.*' to config
     $es = new EditableSaver('CcbrBranch');
     // classname of model to be updated
     $es->update();
 }
开发者ID:dbrisinajumi,项目名称:d2company,代码行数:8,代码来源:CcbrBranchController.php


示例2: actionUpdate

 /**
  * Updates a particular model.
  * If update is successful, the browser will be redirected to the 'view' page.
  * @param integer $id the ID of the model to be updated
  */
 public function actionUpdate()
 {
     Yii::import('ext.editable.EditableSaver');
     //or you can add import 'ext.editable.*' to config
     $es = new EditableSaver('Perfil');
     // 'User' is classname of model to be updated
     $es->update();
 }
开发者ID:rhokrecife,项目名称:sosdefesacivil,代码行数:13,代码来源:PerfilController.php


示例3: actionUpdate

 public function actionUpdate()
 {
     $es = new EditableSaver('SaleItems');
     //'SaleItems' is name of model to be updated
     $es->onBeforeUpdate = function ($event) {
         // The models beforeupdate method will update this, this will just force it to be updated in the database
         $event->sender->setAttribute('qty_diff', 0);
     };
     $es->update();
 }
开发者ID:mehulsbhatt,项目名称:sale_purchase_tracking,代码行数:10,代码来源:SaleItemController.php


示例4: actionAjaxUpdate

 public function actionAjaxUpdate()
 {
     $es = new EditableSaver('EamsFacts');
     $es->update();
     if ($_POST['name'] == 'indicator_value') {
         $model = $this->loadModel($_POST['pk']);
         $model->is_reported = 1;
         $model->save();
     }
 }
开发者ID:robertgunze,项目名称:eams,代码行数:10,代码来源:EamsFactsController.php


示例5: actionUpdateview

 public function actionUpdateview()
 {
     $es = new EditableSaver('PurchaseOrder');
     //'PurchaseOrder' is name of model to be updated
     $es->onBeforeUpdate = function ($event) {
         // The models beforeupdate method will update this, this will just force it to be updated in the database
         $event->sender->setAttribute('updated', 0);
     };
     $es->update();
 }
开发者ID:mehulsbhatt,项目名称:sale_purchase_tracking,代码行数:10,代码来源:PurchaseOrderController.php


示例6: actionAjaxUpdate

 public function actionAjaxUpdate()
 {
     $es = new EditableSaver('EacFacts');
     $es->update();
     if ($_POST['name'] == 'numeric_data' || $_POST["name"] == 'alphanumeric_data') {
         $model = $this->loadModel($_POST['pk']);
         $model->date_updated = date('Y-m-d H:i:s');
         $model->update_user_id = Yii::app()->user->id;
         $model->save();
     }
 }
开发者ID:robertgunze,项目名称:eams,代码行数:11,代码来源:EacFactsController.php


示例7: actionEditableSaver

 /**
  * for company ccuc on change status to USER create customer office uses
  * @return type
  */
 public function actionEditableSaver()
 {
     Yii::import('EditableSaver');
     //or you can add import 'ext.editable.*' to config
     $es = new EditableSaver('CcucUserCompany');
     // classname of model to be updated
     $es->update();
     //verify if change statuss
     if ($es->attribute != 'ccuc_status') {
         return;
     }
     //verify if status changet to USER
     if ($es->value != CcucUserCompany::CCUC_STATUS_USER) {
         return;
     }
     //if do not have user, create
     $m = Person::model();
     return $m->createUser($es->model->ccucPerson->id);
 }
开发者ID:dbrisinajumi,项目名称:d2company,代码行数:23,代码来源:CcucUserCompanyController.php


示例8: actionEditableSaver

 public function actionEditableSaver()
 {
     $es = new EditableSaver('CucpUserCompanyPosition');
     // classname of model to be updated
     $es->update();
 }
开发者ID:dbrisinajumi,项目名称:d2company,代码行数:6,代码来源:CucpUserCompanyPositionController.php


示例9: actionEditableSaver

 public function actionEditableSaver()
 {
     $es = new EditableSaver('FixrFiitXRef');
     // classname of model to be updated
     $es->update();
     $fixr_id = yii::app()->request->getParam('pk');
     $field_name = yii::app()->request->getParam('name');
     if ($field_name == 'fixr_amt') {
         $fixr = FixrFiitXRef::model()->findByPk($fixr_id)->afterSaveUpdateRelatedModels();
     }
 }
开发者ID:dbrisinajumi,项目名称:d2fixr,代码行数:11,代码来源:FixrFiitXRefController.php


示例10: actionUpdateStatus

 public function actionUpdateStatus()
 {
     $es = new EditableSaver('Ticket');
     //'User' is name of model to be updated
     $es->update();
 }
开发者ID:acuba001,项目名称:Collaborative-Platform,代码行数:6,代码来源:TicketController.php


示例11: actionUpdateModuleAttribute

 public function actionUpdateModuleAttribute(){
     $up = new EditableSaver('Module');
     $up->update();
 }
开发者ID:nico13051995,项目名称:IntITA,代码行数:4,代码来源:ModuleController.php


示例12: actionUpdate_fps

 public function actionUpdate_fps()
 {
     LoginForm::checkLogin();
     $model = new EditableSaver('FamilyPlanningServiceDetails');
     $model->update();
 }
开发者ID:rlaput,项目名称:integrated-municipality-management-system,代码行数:6,代码来源:FamilyplanningserviceController.php


示例13: actionEditableSaver

 public function actionEditableSaver($pprs_id = false)
 {
     $es = new EditableSaver('PpcnPersonContact');
     // classname of model to be updated
     $es->update();
 }
开发者ID:dbrisinajumi,项目名称:d2person,代码行数:6,代码来源:PpcnPersonContactController.php


示例14: actionUpdateUser

 public function actionUpdateUser()
 {
     $es = new EditableSaver('userdomain');
     //'User' is name of model to be updated
     $es->update();
 }
开发者ID:acuba001,项目名称:Collaborative-Platform,代码行数:6,代码来源:UserDomainController.php


示例15: actionUpdate_details

 public function actionUpdate_details()
 {
     LoginForm::checkLogin();
     $model = new EditableSaver('MaternalHealthDetails');
     $model->update();
 }
开发者ID:rlaput,项目名称:integrated-municipality-management-system,代码行数:6,代码来源:MaternalhealthController.php



注:本文中的EditableSaver类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP Editor类代码示例发布时间:2022-05-23
下一篇:
PHP EditPage类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap