當前位置: 首頁>>代碼示例>>PHP>>正文


PHP EditableSaver類代碼示例

本文整理匯總了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;未經允許,請勿轉載。