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(); }
/** * 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(); }
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(); }
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(); } }
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(); }
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(); } }
/** * 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); }
public function actionEditableSaver() { $es = new EditableSaver('CucpUserCompanyPosition'); // classname of model to be updated $es->update(); }
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(); } }
public function actionEditableSaver() { $es = new EditableSaver('TtskTask'); // classname of model to be updated $es->update(); }
public function actionEditableSaver() { $es = new EditableSaver('EcntContainer'); // classname of model to be updated $es->update(); }
public function actionEditableSaver() { $es = new EditableSaver('VtrlTrailer'); // classname of model to be updated $es->update(); }
public function actionUpdateStatus() { $es = new EditableSaver('Ticket'); //'User' is name of model to be updated $es->update(); }
public function actionUpdateModuleAttribute(){ $up = new EditableSaver('Module'); $up->update(); }
public function actionEditableSaver() { $es = new EditableSaver('PprsPerson'); // classname of model to be updated $es->update(); }
public function actionUpdate_fps() { LoginForm::checkLogin(); $model = new EditableSaver('FamilyPlanningServiceDetails'); $model->update(); }
public function actionEditableSaver() { $es = new EditableSaver('VtdtTruckDocType'); // classname of model to be updated $es->update(); }
public function actionEditableSaver($pprs_id = false) { $es = new EditableSaver('PpcnPersonContact'); // classname of model to be updated $es->update(); }
public function actionUpdateUser() { $es = new EditableSaver('userdomain'); //'User' is name of model to be updated $es->update(); }
public function actionEditableSaver() { $es = new EditableSaver('FprcProductCategory'); // classname of model to be updated $es->update(); }
public function actionEditableSaver() { $es = new EditableSaver('PfOrderItems'); // classname of model to be updated $es->update(); }
public function actionEditableSaver() { $es = new EditableSaver('VtrsTruckService'); // classname of model to be updated $es->update(); }
public function actionEditableSaver() { $es = new EditableSaver('IptbIpTable'); // classname of model to be updated $es->update(); }
public function actionUpdate_details() { LoginForm::checkLogin(); $model = new EditableSaver('MaternalHealthDetails'); $model->update(); }
public function actionEditableSaver() { $es = new EditableSaver('Fdm2Dimension2'); // classname of model to be updated $es->update(); }
public function actionEditableSaver() { $es = new EditableSaver('FpeoPeriodOdo'); // classname of model to be updated $es->update(); }
public function actionEditableSaver() { $es = new EditableSaver('PdcmDocumentType'); // classname of model to be updated $es->update(); }
public function actionEditableSaver() { $es = new EditableSaver('MllgMailerLog'); // classname of model to be updated $es->update(); }
public function actionEditableSaver() { $es = new EditableSaver('EtprTerminalPrices'); // classname of model to be updated $es->update(); }
public function actionEditableSaver() { $es = new EditableSaver('EdifactData'); // classname of model to be updated $es->update(); }