本文整理汇总了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();
}
示例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();
}
示例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();
}
示例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();
}
}
示例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();
}
示例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();
}
}
示例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);
}
示例8: actionEditableSaver
public function actionEditableSaver()
{
$es = new EditableSaver('CucpUserCompanyPosition');
// classname of model to be updated
$es->update();
}
示例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();
}
}
示例10: actionUpdateStatus
public function actionUpdateStatus()
{
$es = new EditableSaver('Ticket');
//'User' is name of model to be updated
$es->update();
}
示例11: actionUpdateModuleAttribute
public function actionUpdateModuleAttribute(){
$up = new EditableSaver('Module');
$up->update();
}
示例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();
}
示例14: actionUpdateUser
public function actionUpdateUser()
{
$es = new EditableSaver('userdomain');
//'User' is name of model to be updated
$es->update();
}
示例15: actionUpdate_details
public function actionUpdate_details()
{
LoginForm::checkLogin();
$model = new EditableSaver('MaternalHealthDetails');
$model->update();
}
开发者ID:rlaput,项目名称:integrated-municipality-management-system,代码行数:6,代码来源:MaternalhealthController.php