本文整理汇总了PHP中AFS::getARPNumber方法的典型用法代码示例。如果您正苦于以下问题:PHP AFS::getARPNumber方法的具体用法?PHP AFS::getARPNumber怎么用?PHP AFS::getARPNumber使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AFS
的用法示例。
在下文中一共展示了AFS::getARPNumber方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Main
//.........这里部分代码省略.........
if ($td->getCanceledByTDNumber() == "") {
$td = $this->updateTDCanceledByTDNumber($td);
}
foreach ($td as $key => $value) {
switch ($key) {
case "provincialAssessorDate":
if (true) {
list($dateArr["year"], $dateArr["month"], $dateArr["day"]) = explode("-", $value);
$this->formArray["pa_year"] = removePreZero($dateArr["year"]);
$this->formArray["pa_month"] = removePreZero($dateArr["month"]);
$this->formArray["pa_day"] = removePreZero($dateArr["day"]);
} else {
$this->formArray[$key] = "";
}
break;
case "cityMunicipalAssessorDate":
if (true) {
list($dateArr["year"], $dateArr["month"], $dateArr["day"]) = explode("-", $value);
$this->formArray["cm_year"] = removePreZero($dateArr["year"]);
$this->formArray["cm_month"] = removePreZero($dateArr["month"]);
$this->formArray["cm_day"] = removePreZero($dateArr["day"]);
} else {
$this->formArray[$key] = "";
}
break;
case "propertyType":
// so it wont go to the default loop. so that propertyType can refresh from the GET input
break;
default:
//echo $key."=>".$value."<br>";
$this->formArray[$key] = $value;
}
}
}
}
} else {
$AFSDetails = new SoapObject(NCCBIZ . "AFSDetails.php", "urn:Object");
if (!($xmlStr = $AFSDetails->getAFS($this->formArray["afsID"]))) {
// xml failed
} else {
if (!($domDoc = domxml_open_mem($xmlStr))) {
// domDoc empty
} else {
$afs = new AFS();
$afs->parseDomDocument($domDoc);
$this->formArray["taxDeclarationNumber"] = $afs->getARPNumber();
$this->formArray["odID"] = $afs->getOdID();
// default cancelsTDNumber and canceledByTDNumber
$cancelsTDNumberArray = $this->getCancelsTDNumberArray();
if (is_array($cancelsTDNumberArray)) {
$this->formArray["cancelsTDNumber"] = implode(", ", $cancelsTDNumberArray);
}
$canceledByTDNumberArray = $this->getCanceledByTDNumberArray();
if (is_array($canceledByTDNumberArray)) {
$this->formArray["canceledByTDNumber"] = implode(", ", $canceledByTDNumberArray);
}
// default memoranda from properties
$this->formArray["memoranda"] = "";
if (is_array($afs->landArray)) {
if (is_object($afs->landArray[0])) {
if ($afs->landArray[0]->memoranda != "") {
$this->formArray["memoranda"] .= "Land Memo:\n" . $afs->landArray[0]->memoranda;
}
}
}
if (is_array($afs->plantsTreesArray)) {
if (is_object($afs->plantsTreesArray[0])) {
if ($afs->plantsTreesArray[0]->memoranda != "") {
$this->formArray["memoranda"] .= "\nPlants Trees Memo:\n" . $afs->plantsTreesArray[0]->memoranda;
}
}
}
if (is_array($afs->improvementsBuildingsArray)) {
if (is_object($afs->improvementsBuildingsArray[0])) {
if ($afs->improvementsBuildingsArray[0]->memoranda != "") {
$this->formArray["memoranda"] .= "\nImprovements/Buildings Memo:\n" . $afs->improvementsBuildingsArray[0]->memoranda;
}
}
}
if (is_array($afs->machineriesArray)) {
if (is_object($afs->machineriesArray[0])) {
if ($afs->machineriesArray[0]->memoranda != "") {
$this->formArray["memoranda"] .= "\nMachineries Memo:\n" . $afs->machineriesArray[0]->memoranda;
}
}
}
}
}
}
$this->tpl->set_block("rptsTemplate", "odID", "odIDBlock");
$this->tpl->set_var("odIDBlock", "");
$this->tpl->set_block("rptsTemplate", "ACK", "ACKBlock");
$this->tpl->set_var("ACKBlock", "");
}
$this->setForm();
$this->tpl->set_var("Session", $this->sess->url("") . $this->sess->add_query(array("tdID" => $this->formArray["tdID"], "propertyType" => $this->formArray["propertyType"], "propertyID" => $this->formArray["propertyID"], "afsID" => $this->formArray["afsID"])));
$this->tpl->parse("templatePage", "rptsTemplate");
$this->tpl->finish("templatePage");
$this->tpl->p("templatePage");
}