本文整理匯總了PHP中TD::archiveRecord方法的典型用法代碼示例。如果您正苦於以下問題:PHP TD::archiveRecord方法的具體用法?PHP TD::archiveRecord怎麽用?PHP TD::archiveRecord使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類TD
的用法示例。
在下文中一共展示了TD::archiveRecord方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: cancelRPU
function cancelRPU($odID, $userID, $transactionCode = "CA")
{
$od = new OD();
$od->selectRecord($odID);
$od->archive = "true";
$od->modifiedBy = $userID;
$od->transactionCode = $transactionCode;
$afs = new AFS();
$afs->selectRecord("", "", $odID);
$afsID = $afs->afsID;
$afs->archive = "true";
$afs->modifiedBy = $userID;
// NCC Modification checked and implemented by K2 : November 16, 2005
// details:
// added lines 70-76, 79 ($td related)
$td = new TD();
$td->selectRecord("", $afsID);
$tdID = $td->tdID;
$td->archive = "true";
$td->modifiedBy = $userID;
$od->cancelRecord($odID, "true", $userID, $transactionCode);
$afs->archiveRecord($afsID, "true", $userID);
$td->archiveRecord($tdID, "true", $userID);
return true;
}
示例2: archiveRecords
function archiveRecords($tdIDArray = "", $archiveValue = "", $userID = "")
{
$td = new TD();
$ret = false;
foreach ($tdIDArray as $key => $value) {
if ($td->archiveRecord($value, $archiveValue, $userID)) {
$ret = true;
}
}
return $ret;
}
示例3: archiveRecords
function archiveRecords($odIDArray = "", $archiveValue = "", $userID = "")
{
$od = new OD();
$ret = false;
foreach ($odIDArray as $key => $odID) {
if ($od->archiveRecord($odID, $archiveValue, $userID)) {
// archive AFS
$afs = new AFS();
if ($afsID = $afs->checkAfsID($odID)) {
$afs->archiveRecord($afsID, $archiveValue, $userID);
}
// archive TD
$td = new TD();
if ($tdID = $td->checkTdID($afsID)) {
$td->archiveRecord($tdID, $archiveValue, $userID);
}
}
$ret = true;
}
return $ret;
}