当前位置: 首页>>代码示例>>PHP>>正文


PHP PdoDataAccess::update方法代码示例

本文整理汇总了PHP中PdoDataAccess::update方法的典型用法代码示例。如果您正苦于以下问题:PHP PdoDataAccess::update方法的具体用法?PHP PdoDataAccess::update怎么用?PHP PdoDataAccess::update使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在PdoDataAccess的用法示例。


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

示例1: EditWST

 function EditWST()
 {
     parent::update("writ_subtypes", $this, " person_type = :PT and writ_type_id = :WTI and writ_subtype_id = :WSTID ", array(":PT" => $this->person_type, ":WTI" => $this->writ_type_id, ":WSTID" => $this->writ_subtype_id));
     $daObj = new DataAudit();
     $daObj->ActionType = DataAudit::Action_update;
     $daObj->MainObjectID = $this->person_type . "-" . $this->writ_type_id . "-" . $this->writ_subtype_id;
     $daObj->TableName = "writ_subtypes";
     $daObj->execute();
     return true;
 }
开发者ID:jafarkhani,项目名称:rtfund,代码行数:10,代码来源:writ_subtype.class.php

示例2: EditDocument

 function EditDocument()
 {
     if (parent::update("DMS_documents", $this, " DocumentID=:l", array(":l" => $this->DocumentID)) === false) {
         return false;
     }
     $daObj = new DataAudit();
     $daObj->ActionType = DataAudit::Action_update;
     $daObj->MainObjectID = $this->DocumentID;
     $daObj->TableName = "DMS_documents";
     $daObj->execute();
     return true;
 }
开发者ID:jafarkhani,项目名称:rtfund,代码行数:12,代码来源:dms.class.php

示例3: Edit

 function Edit()
 {
     $result = parent::update("priority", $this, "PriorityID=" . $this->PriorityID);
     if ($result === false) {
         return false;
     }
     $daObj = new DataAudit();
     $daObj->ActionType = DataAudit::Action_update;
     $daObj->MainObjectID = $this->PriorityID;
     $daObj->TableName = "priority";
     $daObj->execute();
     return true;
 }
开发者ID:jafarkhani,项目名称:rtfund,代码行数:13,代码来源:priority.class.php

示例4: EditTax

 function EditTax($tax_table_type_id)
 {
     $result = parent::update("HRM_tax_table_types", $this, "tax_table_type_id=:ti ", array(":ti" => $this->tax_table_type_id));
     if ($result === false) {
         return false;
     }
     $daObj = new DataAudit();
     $daObj->ActionType = DataAudit::Action_update;
     $daObj->MainObjectID = $this->tax_table_type_id;
     $daObj->TableName = "HRM_tax_table_types";
     $daObj->execute();
     return true;
 }
开发者ID:jafarkhani,项目名称:rtfund,代码行数:13,代码来源:tax_table_types.class.php

示例5: Edit

 function Edit()
 {
     $whereParams = array();
     $whereParams[":sfid"] = $this->sfid;
     if (parent::update("study_fields", $this, " sfid=:sfid", $whereParams) === false) {
         return false;
     }
     $daObj = new DataAudit();
     $daObj->ActionType = DataAudit::Action_update;
     $daObj->MainObjectID = $this->sfid;
     $daObj->TableName = "study_fields";
     $daObj->execute();
     return true;
 }
开发者ID:jafarkhani,项目名称:rtfund,代码行数:14,代码来源:study_fields.class.php

示例6: EditTaxItem

 function EditTaxItem($tax_table_id, $row_no)
 {
     $result = parent::update("HRM_tax_table_items", $this, "tax_table_id=:tid and row_no=:rid ", array(":tid" => $this->tax_table_id, ":rid" => $this->row_no));
     if ($result === false) {
         return false;
     }
     $daObj = new DataAudit();
     $daObj->ActionType = DataAudit::Action_update;
     $daObj->MainObjectID = $this->tax_table_id;
     $daObj->SubObjectID = $this->row_no;
     $daObj->TableName = "HRM_tax_table_items";
     $daObj->execute();
     return true;
 }
开发者ID:jafarkhani,项目名称:rtfund,代码行数:14,代码来源:tax_table_items.class.php

示例7: EditParam

 function EditParam($param_id)
 {
     $result = parent::update("HRM_salary_param_types", $this, "param_type=:ptp and person_type =:pt ", array(":ptp" => $this->param_type, ":pt" => $this->person_type));
     if ($result === false) {
         return false;
     }
     $daObj = new DataAudit();
     $daObj->ActionType = DataAudit::Action_update;
     $daObj->MainObjectID = $this->param_type;
     $daObj->SubObjectID = $this->person_type;
     $daObj->TableName = "HRM_salary_param_types";
     $daObj->execute();
     return true;
 }
开发者ID:jafarkhani,项目名称:rtfund,代码行数:14,代码来源:salary_param_types.class.php

示例8: Edit

 function Edit()
 {
     $whereParams = array();
     $whereParams[":sid"] = $this->SalaryItemReportID;
     $result = parent::update("SalaryItemReport", $this, " SalaryItemReportID=:sid ", $whereParams);
     if (!$result) {
         return false;
     }
     $daObj = new DataAudit();
     $daObj->ActionType = DataAudit::Action_update;
     $daObj->MainObjectID = $this->SalaryItemReportID;
     $daObj->TableName = "SalaryItemReport";
     $daObj->execute();
     return true;
 }
开发者ID:jafarkhani,项目名称:rtfund,代码行数:15,代码来源:salary_item_report.class.php

示例9: Edit

 function Edit()
 {
     $result = parent::update("HRM_person_dependent_supports", $this, "PersonID=:psid and master_row_no=:mrowno and row_no=:rowNo", array(":psid" => $this->PersonID, ":mrowno" => $this->master_row_no, ":rowNo" => $this->row_no));
     if ($result === false) {
         return false;
     }
     $daObj = new DataAudit();
     $daObj->ActionType = DataAudit::Action_update;
     $daObj->RelatedPersonType = 3;
     $daObj->RelatedPersonID = $this->PersonID;
     $daObj->MainObjectID = $this->row_no;
     $daObj->TableName = "person_dependent_supports";
     $daObj->execute();
     return true;
 }
开发者ID:jafarkhani,项目名称:rtfund,代码行数:15,代码来源:dependent_support.class.php

示例10: Edit

 function Edit()
 {
     $whereParams = array();
     $whereParams[":ccid"] = $this->cost_center_id;
     $result = parent::update("cost_centers", $this, "cost_center_id=:ccid", $whereParams);
     if ($result === false) {
         return false;
     }
     $daObj = new DataAudit();
     $daObj->ActionType = DataAudit::Action_update;
     $daObj->MainObjectID = $this->cost_center_id;
     $daObj->TableName = "cost_centers";
     $daObj->execute();
     return true;
 }
开发者ID:jafarkhani,项目名称:rtfund,代码行数:15,代码来源:cost_centers.class.php

示例11: Edit

 function Edit()
 {
     $whereParams = array();
     //$whereParams[":pid"] = $this->PersonID;
     $whereParams[":sid"] = $this->staff_id;
     if (PdoDataAccess::update("staff_details", $this, " staff_id =:sid ", $whereParams) === false) {
         return false;
     }
     $daObj = new DataAudit();
     $daObj->ActionType = DataAudit::Action_update;
     $daObj->MainObjectID = $this->staff_id;
     $daObj->TableName = "staff_details";
     $daObj->execute();
     return true;
 }
开发者ID:jafarkhani,项目名称:rtfund,代码行数:15,代码来源:staff_detasils.php

示例12: EditList

 function EditList()
 {
     $whereParams = array();
     $whereParams[":lid"] = $this->list_id;
     $result = parent::update("evaluation_lists", $this, " list_id=:lid", $whereParams);
     if (!$result) {
         return false;
     }
     $daObj = new DataAudit();
     $daObj->ActionType = DataAudit::Action_update;
     $daObj->MainObjectID = $this->list_id;
     $daObj->TableName = "evaluation_lists";
     $daObj->execute();
     return true;
 }
开发者ID:jafarkhani,项目名称:rtfund,代码行数:15,代码来源:evaluation_lists.class.php

示例13: Edit

 function Edit()
 {
     $whereParams = array();
     $whereParams[":sid"] = $this->SalaryItemTypeID;
     $whereParams[":ccid"] = $this->CostCenterID;
     $result = parent::update("CostCenterException", $this, " SalaryItemTypeID=:sid and CostCenterID =:ccid ", $whereParams);
     if (!$result) {
         return false;
     }
     $daObj = new DataAudit();
     $daObj->ActionType = DataAudit::Action_update;
     $daObj->MainObjectID = $this->SalaryItemTypeID;
     $daObj->TableName = "CostCenterException";
     $daObj->execute();
     return true;
 }
开发者ID:jafarkhani,项目名称:rtfund,代码行数:16,代码来源:cost_center_exception.class.php

示例14: Edit

 function Edit()
 {
     if ($this->branch_code == 0 || $this->branch_code == null) {
         $this->branch_code = PDONULL;
     }
     $result = parent::update("banks", $this, "bank_id=" . $this->bank_id);
     if ($result === false) {
         return false;
     }
     $daObj = new DataAudit();
     $daObj->ActionType = DataAudit::Action_update;
     $daObj->MainObjectID = $this->bank_id;
     $daObj->TableName = "banks";
     $daObj->execute();
     return true;
 }
开发者ID:jafarkhani,项目名称:rtfund,代码行数:16,代码来源:banks.class.php

示例15: EditLoan

 function EditLoan()
 {
     if (parent::update("LON_loans", $this, " LoanID=:l", array(":l" => $this->LoanID)) === false) {
         return false;
     }
     $obj = new LON_loans($this->LoanID);
     $blockObj = new ACC_blocks($obj->BlockID);
     $blockObj->BlockDesc = $this->LoanDesc;
     $blockObj->EditBlock();
     $daObj = new DataAudit();
     $daObj->ActionType = DataAudit::Action_update;
     $daObj->MainObjectID = $this->LoanID;
     $daObj->TableName = "LON_loans";
     $daObj->execute();
     return true;
 }
开发者ID:jafarkhani,项目名称:rtfund,代码行数:16,代码来源:loan.class.php


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