本文整理汇总了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;
}