本文整理汇总了PHP中ebpls_update_data函数的典型用法代码示例。如果您正苦于以下问题:PHP ebpls_update_data函数的具体用法?PHP ebpls_update_data怎么用?PHP ebpls_update_data使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了ebpls_update_data函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: update_system_code
function update_system_code($dbLink, $key, $value)
{
$strValues[$key] = $value;
$strWhere["id"] = 1;
$ret = ebpls_update_data($dbLink, "ebpls_codes_table", $strValues, $strWhere);
//print_r(get_db_error());
return $ret;
}
示例2: update
/**
* View owner data, loads data using owner id as param
*
*/
function update($eaid)
{
$arrData = $this->getData();
foreach ($arrData as $key => $value) {
if ($arrData[$key] != NULL) {
$strValues[$key] = $value;
}
}
if (($error_num = $this->validateData(true)) > 0) {
$strWhere[EAID] = $eaid;
$ret = ebpls_update_data($this->m_dbLink, EBPLS_LOTPIN_TABLE, $strValues, $strWhere);
if ($ret < 0) {
return $ret;
} else {
return $ret;
}
} else {
return -1;
}
}
示例3: update
function update($admin)
{
$this->data_elems[EBPLS_ACCT_CODE_UPDATED] = date("Y-m-d H:i:s");
$this->data_elems[EBPLS_UPDATED_BY] = $admin;
$arrData = $this->getData();
foreach ($arrData as $key => $value) {
if ($arrData[$key] != NULL) {
$strValues[$key] = $value;
}
}
$strWhere[EBPLS_ACCT_CODE] = $this->data_elems[EBPLS_ACCT_CODE];
$ret = ebpls_update_data($this->m_dbLink, EBPLS_COT_TABLE, $strValues, $strWhere);
if ($ret < 0) {
$this->debug("UPDATE EBPLS_COT_TABLE FAILED [error:{$ret},msg=" . get_db_error() . "]");
$this->setError($ret, get_db_error());
return $ret;
} else {
$this->debug("UPDATE EBPLS_COT_TABLE SUCCESSFULL [{$ret}]");
return $ret;
}
}
示例4: update
/**
* Update owner data
**/
function update($occupancy_id)
{
$arrData = $this->getData();
foreach ($arrData as $key => $value) {
if ($arrData[$key] != NULL) {
$strValues[$key] = $value;
}
}
if (($error_num = $this->validateData(true)) > 0) {
$strWhere[OCCUPANCY_TYPE_CODE] = $occupancy_id;
$ret = ebpls_update_data($this->m_dbLink, EBPLS_OCCUPANCY_TYPE_TABLE, $strValues, $strWhere);
if ($ret < 0) {
return $ret;
} else {
return $ret;
}
} else {
return -1;
}
}
示例5: update
function update($code = NULL)
{
$this->data_elems[EBPLS_TAX_FEE_DATE_REGISTERED] = date("Y-m-d H:i:s");
$this->data_elems[EBPLS_TAX_FEE_DATE_UPDATED] = date("Y-m-d H:i:s");
foreach ($this->data_elems as $key => $value) {
if ($value != "") {
$strValues[$key] = $value;
}
}
if ($code) {
$strWhere[EBPLS_TAX_FEE_CODE] = $code;
} else {
$strWhere[EBPLS_TAX_FEE_CODE] = $this->data_elems[EBPLS_TAX_FEE_CODE];
}
$ret = ebpls_update_data($this->m_dbLink, EBPLS_TAX_FEE_TABLE, $strValues, $strWhere);
if ($ret < 0) {
$this->debug("UPDATE EBPLS_TAX_FEE_TABLEFAILED [error:{$ret},msg=" . get_db_error() . "]");
$this->setError($ret, get_db_error());
return $ret;
} else {
$this->debug("UPDATE EBPLS_TAX_FEE_TABLE SUCCESSFULL [{$ret}]");
return $ret;
}
}
示例6: update
function update($formula_id, $admin)
{
unset($this->data_elems[EBPLS_FORMULAS_FORMULA_ID]);
$this->data_elems[EBPLS_FORMULAS_CREATE_TS] = date("Y-m-d H:i:s");
$this->data_elems[EBPLS_FORMULAS_UPDATE_TS] = date("Y-m-d H:i:s");
$this->data_elems[EBPLS_FORMULAS_ADMIN] = $admin;
$obj = $this;
unset($obj->err_code);
unset($obj->err_mesg);
$this->debug("Formulatype : " . $obj->getData(EBPLS_FORMULAS_FORMULA_TYPE));
$this->data_elems[EBPLS_FORMULAS_FORMULA_CLASS] = serialize($obj);
foreach ($this->data_elems as $key => $value) {
if ($value != "") {
$strValues[$key] = $value;
}
}
if ($formula_id) {
$strWhere[EBPLS_FORMULAS_FORMULA_ID] = $formula_id;
} else {
$strWhere[EBPLS_FORMULAS_FORMULA_ID] = $this->data_elems[EBPLS_FORMULAS_FORMULA_ID];
}
$ret = ebpls_update_data($this->m_dbLink, EBPLS_FORMULAS_TABLE, $strValues, $strWhere);
if ($ret < 0) {
$this->debug("UPDATE FORMULA FAILED [error:{$ret},msg=" . get_db_error() . "]");
$this->setError($ret, get_db_error());
return $ret;
} else {
$this->debug("UPDATE FORMULA SUCCESSFULL [{$ret}]");
return $ret;
}
}
示例7: update
/**
* Update owner data
*
*
**/
function update($district_code)
{
$arrData = $this->getData();
foreach ($arrData as $key => $value) {
if ($arrData[$key] != NULL) {
$strValues[$key] = $value;
}
}
if (($error_num = $this->validateData(true)) > 0) {
$strWhere[DISTRICT_CODE] = $district_code;
$ret = ebpls_update_data($this->m_dbLink, EBPLS_DISTRICT_TABLE, $strValues, $strWhere);
if ($ret < 0) {
return $ret;
} else {
return $ret;
}
} else {
return -1;
}
}
示例8: update
function update($fee_id, $admin, $user_level)
{
$this->debug("update( {$fee_id}, {$admin}, {$user_level} )");
if ($this->loadFeeCodeData() < 0) {
$this->setError(-1, "Unable to load fee data with feecode : " . $this->getData(TRANS_FEE_ID));
$this->debug("Unable to load fee data with feecode : " . $this->getData(TRANS_FEE_ID));
return -1;
}
if ($this->validateData(true) > 0) {
$ts = time();
$dt = date("Y-m-d H:i:s", $ts);
$this->data_elems[TF_LAST_UPDATED_TS] = $dt;
$this->data_elems[TF_LAST_UPDATED_BY] = $creator;
$this->computeTaxTotalAmounDue();
unset($this->data_elems[TF_TAX_FORMULA]);
$arrData = $this->getData();
foreach ($arrData as $key => $value) {
if ($arrData[$key] != NULL) {
$strValues[$key] = $value;
}
}
$strWhere[TF_FEE_ID] = $fee_id;
$ret = ebpls_update_data($this->m_dbLink, TF_TABLE, $strValues, $strWhere);
if ($ret < 0) {
$this->debug("TF UPDATE ERROR : {$ret}");
$this->setError(-1, "TF UPDATE ERROR : {$ret}");
return $ret;
} else {
$this->debug("TF UPDATE OK : {$ret}");
return $ret;
}
} else {
$this->debug("TF UPDATE TRANS REQ FAILED : {$ret}");
$this->setError(-1, "TF UPDATE TRANS REQ FAILED : {$ret}");
return -1;
}
}
示例9: assignPermitCode
function assignPermitCode($code)
{
$strValues[FRANCHISE_PERMIT_CODE] = $code;
$strWhere[FRANCHISE_PERMIT_ID] = $this->data_elems[FRANCHISE_PERMIT_ID];
$ret = ebpls_update_data($this->m_dbLink, EBPLS_FRANCHISE_PERMIT_TABLE, $strValues, $strWhere);
if ($ret < 0) {
$this->setError($ret, $str = get_db_error());
$this->debug("UPDATE FRA PERMIT FAILED [error:{$ret},msg=" . $str . "]");
return $ret;
} else {
$this->debug("UPDATE FRA PERMIT SUCCESSFULL [{$ret}]");
return $ret;
}
}
示例10: update
/**
* Update owner data
*
*
**/
function update($industry_id)
{
$arrData = $this->getData();
foreach ($arrData as $key => $value) {
if ($arrData[$key] != NULL) {
$strValues[$key] = $value;
}
}
if (($error_num = $this->validateData(true)) > 0) {
$strWhere[INDUSTRY_SECTOR_CODE] = $industry_id;
$ret = ebpls_update_data($this->m_dbLink, EBPLS_INDUSTRY_SECTOR_TABLE, $strValues, $strWhere);
if ($ret < 0) {
return $ret;
} else {
return $ret;
}
} else {
return -1;
}
}
示例11: updateDueDate
function updateDueDate($payment_id, $due_date, $remarks, $admin)
{
$dt = date("Y-m-d H:i:s");
$strValues[TPS_PAYMENT_LAST_UPDATED_BY] = $admin;
$strValues[TPS_PAYMENT_LAST_UPDATE_TS] = $dt;
$strValues[TPS_PAYMENT_DUE_DATE] = $due_date . " 23:59:59";
$strValues[TPS_PAYMENT_REMARKS] = $remarks;
$strWhere[TPS_PAYMENT_ID] = $payment_id;
$ret = ebpls_update_data($this->m_dbLink, TPS_TABLE, $strValues, $strWhere);
if ($ret < 0) {
$this->debug("TPS UPDATE ERROR : {$ret}");
return $ret;
} else {
$this->debug("TPS UPDATE OK : {$ret}");
return $ret;
}
}
示例12: update
/**
* Update owner data
*
*
**/
function update($owner_id)
{
$this->data_elems[OWNER_LASTUPDATED] = date("Y-d-m H:i:s");
$arrData = $this->getData();
foreach ($arrData as $key => $value) {
if ($arrData[$key] != NULL) {
$strValues[$key] = $value;
}
}
if (($error_num = $this->validateData(true)) > 0) {
$strWhere[OWNER_ID] = $owner_id;
$ret = ebpls_update_data($this->m_dbLink, EBPLS_OWNER_TABLE, $strValues, $strWhere);
if ($ret < 0) {
$this->debug("UPDATE OWNER FAILED [error:{$ret},msg=" . get_db_error() . "]");
$this->setError($ret, get_db_error());
return $ret;
} else {
$this->debug("UPDATE OWNER SUCCESSFULL [{$ret}]");
return $ret;
}
} else {
$this->debug("CREATE OWNER FAILED [error:{$ret},msg=" . get_db_error() . "]");
return -1;
}
}
示例13: updateExtra
function updateExtra($code, $desc, $tf_code, $user)
{
$this->setData($this->m_strCodeKey, $code);
$this->setData($this->m_strDescKey, $desc);
$this->setData($this->m_strAdminKey, $user);
if ($this->m_strTableKeyConst == EBPLS_BUSINESS_NATURE) {
$this->data_elems[SYSREF_NATURE_TAX_FEE_CODE] = $tf_code[0];
$this->data_elems[SYSREF_NATURE_TAX_FEE_CODE2] = $tf_code[1];
}
if (($error_num = $this->validateData(true)) > 0) {
$arrData = $this->getData();
foreach ($arrData as $key => $value) {
if ($arrData[$key] != NULL) {
$strValues[$key] = $value;
}
}
$this->setData($this->m_strUpdateKey, date("Y-m-d H:i:s"));
$strWhere[$this->m_strCodeKey] = $code;
$ret = ebpls_update_data($this->m_dbLink, $this->m_strTableKey, $strValues, $strWhere);
if ($ret < 0) {
$this->debug("UPDATE {$this->m_strTableKey} FAILED [error:{$ret},msg=" . get_db_error() . "]");
$this->setError($ret, get_db_error());
return $ret;
} else {
$this->debug("UPDATE {$this->m_strTableKey} SUCCESSFULL [{$ret}]");
return $ret;
}
} else {
$this->debug("CREATE {$this->m_strTableKey} FAILED [error:{$ret},msg=" . get_db_error() . "]");
return -1;
}
}
示例14: update
function update($code = NULL)
{
$this->data_elems[$this->m_strTimeStamp] = date("Y-m-d H:i:s");
$arrData = $this->getData();
foreach ($arrData as $key => $value) {
if ($arrData[$key] != NULL) {
$strValues[$key] = $value;
}
}
$this->debug("ID : " . EBPLS_PAR_PR_ID . ", {$this->m_strPrimaryKey} = {$code}<BR>");
if ($code) {
$strWhere[$this->m_strPrimaryKey] = $code;
} else {
$strWhere[$this->m_strPrimaryKey] = $this->data_elems[$this->m_strPrimaryKey];
}
$ret = ebpls_update_data($this->m_dbLink, $this->m_strTable, $strValues, $strWhere);
if ($ret < 0) {
$this->debug("UPDATE PDF SYSREF [error:{$ret},msg=" . get_db_error() . "]");
$this->setError($ret, get_db_error());
return $ret;
} else {
$this->debug("UPDATE PDF SYSREF SUCCESSFULL [{$ret}]");
return $ret;
}
}
示例15: update
function update()
{
if (($error_num = $this->validateData(true)) > 0) {
$strWhere[BUSINESS_ID] = $this->business_id;
$strWhere[NATURE_BUSINESS_NATURE_CODE] = $this->data_elems[NATURE_BUSINESS_NATURE_CODE];
$this->data_elems[NATURE_UPDATED_BY] = $creator;
$this->data_elems[NATURE_UPDATED_LAST_TS] = $dt;
$strValues = $this->data_elems;
$ret = ebpls_update_data($this->m_dbLink, NATURE_BUSINESS_TABLE, $strValues, $strWhere);
if ($ret < 0) {
$this->setError($ret, get_db_error());
$this->debug("Update Business nature [error:{$ret},msg=" . get_db_error() . "]");
return $ret;
} else {
$this->debug("Update Business nature SUCCESSFULL [{$ret}]");
return $ret;
}
} else {
$this->debug("Update Business nature FAILED [error:{$ret},msg=" . get_db_error() . "]");
return -1;
}
}