コード例 #1
0
ファイル: AssessmentSettings.php プロジェクト: armic/erpts
 function setDomDocument()
 {
     $this->domDocument = domxml_new_doc("1.0");
     $rec = $this->domDocument->create_element("TreasurySettings");
     $rec = $this->domDocument->append_child($rec);
     $this->setDocNode("autoCalculate", $this->autoCalculate, $this->domDocument, $rec);
 }
コード例 #2
0
ファイル: array2xml.class.php プロジェクト: jor3l/OSModules
 function array2xml($array)
 {
     if (!is_array($array)) {
         return false;
     }
     $this->array = $array;
     $this->dom = domxml_new_doc("1.0");
 }
コード例 #3
0
ファイル: GetSOA.php プロジェクト: armic/erpts
 function GetSOA($entityID = 13, $ownerType = "Person")
 {
     $this->ownerType = $ownerType;
     $this->entityID = $entityID;
     $this->xmlSOA = domxml_new_doc("1.0");
     $node = $this->xmlSOA->create_element("TDHistory");
     $this->tdHistory = $this->xmlSOA->append_child($node);
 }
コード例 #4
0
ファイル: xmlwrapper.php プロジェクト: abhinay100/forma_app
 function &createNew($version)
 {
     if ($GLOBALS['xmlv'] == XMLV4) {
         $this->node = domxml_new_doc($version);
     } else {
         $this->node = new DOMDocument($version);
     }
     return $this;
 }
コード例 #5
0
ファイル: Shares.php プロジェクト: armic/erpts
 function setDomDocument()
 {
     $this->domDocument = domxml_new_doc("1.0");
     $rec = $this->domDocument->create_element("Shares");
     $rec = $this->domDocument->append_child($rec);
     $this->setDocNode("provincialCityShare", $this->provincialCityShare, $this->domDocument, $rec);
     $this->setDocNode("municipalShare", $this->municipalShare, $this->domDocument, $rec);
     $this->setDocNode("barangayShare", $this->barangayShare, $this->domDocument, $rec);
 }
コード例 #6
0
ファイル: ODHistory.php プロジェクト: armic/erpts
 function setDomDocument()
 {
     $this->domDocument = domxml_new_doc("1.0");
     $rec = $this->domDocument->create_element("ODHistory");
     $rec = $this->domDocument->append_child($rec);
     $this->setDocNode("odHistoryID", $this->odHistoryID, $this->domDocument, $rec);
     $this->setDocNode("presentODID", $this->presentODID, $this->domDocument, $rec);
     $this->setDocNode("previousODID", $this->previousODID, $this->domDocument, $rec);
     $this->setDocNode("transactionCode", $this->transactionCode, $this->domDocument, $rec);
 }
コード例 #7
0
ファイル: StoreyRecords.php プロジェクト: armic/erpts
 function setDomStoreyRecords()
 {
     $this->domStoreyRecords = domxml_new_doc("1.0");
     $domList = $this->domStoreyRecords->create_element("StoreyList");
     $domList = $this->domStoreyRecords->append_child($domList);
     foreach ($this->storeyList as $key => $value) {
         $domStorey = $value->getDomStorey();
         $this->appendToDomList($domList, $domStorey);
     }
     return true;
 }
コード例 #8
0
ファイル: Province.php プロジェクト: armic/erpts
 function setDomDocument()
 {
     $this->domDocument = domxml_new_doc("1.0");
     $rec = $this->domDocument->create_element("Province");
     $rec = $this->domDocument->append_child($rec);
     //$rec->set_attribute("provinceID",$this->provinceID);
     $this->setDocNode("provinceID", $this->provinceID, $this->domDocument, $rec);
     $this->setDocNode("code", $this->code, $this->domDocument, $rec);
     $this->setDocNode("description", $this->description, $this->domDocument, $rec);
     $this->setDocNode("status", $this->status, $this->domDocument, $rec);
 }
コード例 #9
0
 function setDomDocument()
 {
     $this->domDocument = domxml_new_doc("1.0");
     $domList = $this->domDocument->create_element("LandList");
     $domList = $this->domDocument->append_child($domList);
     foreach ($this->arrayList as $key => $value) {
         $domDocument = $value->getDomDocument();
         $this->appendToDomList($domList, $domDocument);
     }
     return true;
 }
コード例 #10
0
ファイル: LandClasses.php プロジェクト: armic/erpts
 function setDomDocument()
 {
     $this->domDocument = domxml_new_doc("1.0");
     $rec = $this->domDocument->create_element("LandClasses");
     $rec = $this->domDocument->append_child($rec);
     //$rec->set_attribute("landClassesID",$this->landClassesID);
     $this->setDocNode("landClassesID", $this->landClassesID, $this->domDocument, $rec);
     $this->setDocNode("code", $this->code, $this->domDocument, $rec);
     $this->setDocNode("description", $this->description, $this->domDocument, $rec);
     $this->setDocNode("value", $this->value, $this->domDocument, $rec);
     $this->setDocNode("status", $this->status, $this->domDocument, $rec);
 }
コード例 #11
0
ファイル: Barangay.php プロジェクト: armic/erpts
 function setDomDocument()
 {
     $this->domDocument = domxml_new_doc("1.0");
     $rec = $this->domDocument->create_element("Barangay");
     $rec = $this->domDocument->append_child($rec);
     //$rec->set_attribute("barangayID",$this->barangayID);
     $this->setDocNode("barangayID", $this->barangayID, $this->domDocument, $rec);
     $this->setDocNode("code", $this->code, $this->domDocument, $rec);
     $this->setDocNode("districtID", $this->districtID, $this->domDocument, $rec);
     $this->setDocNode("description", $this->description, $this->domDocument, $rec);
     $this->setDocNode("status", $this->status, $this->domDocument, $rec);
 }
コード例 #12
0
ファイル: LGU.php プロジェクト: armic/erpts
 function setDomDocument()
 {
     $this->domDocument = domxml_new_doc("1.0");
     $rec = $this->domDocument->create_element("LGU");
     $rec = $this->domDocument->append_child($rec);
     $this->setDocNode("LGUID", $this->LGUID, $this->domDocument, $rec);
     $this->setDocNode("LGUName", $this->LGUName, $this->domDocument, $rec);
     $this->setDocNode("LGUBiz", $this->LGUBiz, $this->domDocument, $rec);
     $this->setDocNode("LGUDB", $this->LGUDB, $this->domDocument, $rec);
     $this->setDocNode("LGUusername", $this->LGUusername, $this->domDocument, $rec);
     $this->setDocNode("LGUpassword", $this->LGUpassword, $this->domDocument, $rec);
 }
コード例 #13
0
ファイル: PlantsTreesActualUses.php プロジェクト: armic/erpts
 function setDomDocument()
 {
     $this->domDocument = domxml_new_doc("1.0");
     $rec = $this->domDocument->create_element("PlantsTreesActualUses");
     $rec = $this->domDocument->append_child($rec);
     //$rec->set_attribute("plantsTreesActualUsesID",$this->plantsTreesActualUsesID);
     $this->setDocNode("plantsTreesActualUsesID", $this->plantsTreesActualUsesID, $this->domDocument, $rec);
     $this->setDocNode("code", $this->code, $this->domDocument, $rec);
     $this->setDocNode("reportCode", $this->reportCode, $this->domDocument, $rec);
     $this->setDocNode("description", $this->description, $this->domDocument, $rec);
     $this->setDocNode("value", $this->value, $this->domDocument, $rec);
     $this->setDocNode("status", $this->status, $this->domDocument, $rec);
 }
コード例 #14
0
 function setDomDocument()
 {
     $this->domDocument = domxml_new_doc("1.0");
     $rec = $this->domDocument->create_element("MachineriesDepreciation");
     $rec = $this->domDocument->append_child($rec);
     //$rec->set_attribute("machineriesDepreciationID",$this->machineriesDepreciationID);
     $this->setDocNode("machineriesDepreciationID", $this->machineriesDepreciationID, $this->domDocument, $rec);
     $this->setDocNode("code", $this->code, $this->domDocument, $rec);
     $this->setDocNode("reportCode", $this->reportCode, $this->domDocument, $rec);
     $this->setDocNode("description", $this->description, $this->domDocument, $rec);
     $this->setDocNode("value", $this->value, $this->domDocument, $rec);
     $this->setDocNode("status", $this->status, $this->domDocument, $rec);
 }
コード例 #15
0
ファイル: Owner.php プロジェクト: armic/erpts
 function setDomDocument()
 {
     $this->domDocument = domxml_new_doc("1.0");
     $rec = $this->domDocument->create_element("Owner");
     $rec = $this->domDocument->append_child($rec);
     $rec->set_attribute("ownerID", $this->ownerID);
     $this->setDocNode("ownerID", $this->ownerID, $this->domDocument, $rec);
     if (count($this->personArray)) {
         $this->setArrayDocNode("personArray", $this->personArray, $rec);
     }
     if (count($this->companyArray)) {
         $this->setArrayDocNode("companyArray", $this->companyArray, $rec);
     }
 }
コード例 #16
0
ファイル: Addressclasstest.php プロジェクト: armic/erpts
 function setDomDocument()
 {
     $this->domDocument = domxml_new_doc("1.0");
     $rec = $this->domDocument->create_element("address");
     $rec = $this->domDocument->append_child($rec);
     //$rec->set_attribute("addressID",$this->addressID);
     $this->setDocNode("addressID", $this->addressID, $this->domDocument, $rec);
     $this->setDocNode("number", $this->number, $this->domDocument, $rec);
     $this->setDocNode("street", $this->street, $this->domDocument, $rec);
     $this->setDocNode("barangay", $this->barangay, $this->domDocument, $rec);
     $this->setDocNode("district", $this->district, $this->domDocument, $rec);
     $this->setDocNode("municipalityCity", $this->municipalityCity, $this->domDocument, $rec);
     $this->setDocNode("province", $this->province, $this->domDocument, $rec);
 }
コード例 #17
0
ファイル: AssessorRecords.php プロジェクト: armic/erpts
 function setDomDocument()
 {
     $this->domDocument = domxml_new_doc("1.0");
     $domList = $this->domDocument->create_element("AssessorList");
     $domList = $this->domDocument->append_child($domList);
     if ($this->arrayList) {
         foreach ($this->arrayList as $key => $value) {
             $domDoc = $value->getDomDocument();
             $this->appendToDomList($domList, $domDoc);
         }
     } else {
         return false;
     }
     return true;
 }
コード例 #18
0
ファイル: ODRecords.php プロジェクト: armic/erpts
 function setDomDocument()
 {
     $this->domDocument = domxml_new_doc("1.0");
     $domList = $this->domDocument->create_element("ArrayList");
     $domList = $this->domDocument->append_child($domList);
     if (is_array($this->arrayList)) {
         foreach ($this->arrayList as $key => $value) {
             $domOD = $value->getDomDocument();
             $this->appendToDomList($domList, $domOD);
         }
         $ret = true;
     } else {
         $ret = false;
     }
     return $ret;
 }
コード例 #19
0
 function setDomDocument()
 {
     $this->domDocument = domxml_new_doc("1.0");
     $domList = $this->domDocument->create_element("ImprovementsBuildingsActualUsesList");
     $domList = $this->domDocument->append_child($domList);
     if ($this->arrayList) {
         //print_r($this->arrayList);
         foreach ($this->arrayList as $key => $value) {
             $domDoc = $value->getDomDocument();
             $this->appendToDomList($domList, $domDoc);
         }
     } else {
         return false;
     }
     return true;
 }
コード例 #20
0
 function setDomDocument()
 {
     $this->domDocument = domxml_new_doc("1.0");
     $domList = $this->domDocument->create_element("MachineriesDepreciationList");
     $domList = $this->domDocument->append_child($domList);
     if ($this->arrayList) {
         //print_r($this->arrayList);
         foreach ($this->arrayList as $key => $value) {
             $domDoc = $value->getDomDocument();
             $this->appendToDomList($domList, $domDoc);
         }
     } else {
         return false;
     }
     return true;
 }
コード例 #21
0
ファイル: Company.php プロジェクト: armic/erpts
 function setDomDocument()
 {
     $this->domDocument = domxml_new_doc("1.0");
     $rec = $this->domDocument->create_element("Company");
     $rec = $this->domDocument->append_child($rec);
     //$rec->set_attribute("companyID",$this->companyID);
     $this->setDocNode("companyID", $this->companyID, $this->domDocument, $rec);
     $this->setDocNode("companyName", $this->companyName, $this->domDocument, $rec);
     $this->setDocNode("tin", $this->tin, $this->domDocument, $rec);
     if (count($this->addressArray)) {
         $this->setArrayDocNode("addressArray", $this->addressArray, $rec);
     }
     $this->setDocNode("telephone", $this->telephone, $this->domDocument, $rec);
     $this->setDocNode("fax", $this->fax, $this->domDocument, $rec);
     $this->setDocNode("email", $this->email, $this->domDocument, $rec);
     $this->setDocNode("website", $this->website, $this->domDocument, $rec);
 }
コード例 #22
0
ファイル: xml.class.php プロジェクト: Ogwang/sainp
 function createJunk()
 {
     if (extension_loaded('Dom')) {
         $dom = new DOMDocument('1.0', 'utf-8');
         $root = $dom->createElement('root');
         $root = $dom->appendChild($root);
         $element = $dom->createElement('item');
         $element = $root->appendChild($element);
         $element->setAttribute('type', 'drink');
         $element->appendChild($dom->createTextNode('coke'));
         $element = $dom->createElement('item');
         $element = $root->appendChild($element);
         $element->setAttribute('type', 'drink');
         $element->appendChild($dom->createTextNode('beer'));
         $element = $dom->createElement('item');
         $element = $root->appendChild($element);
         $element->setAttribute('type', 'dessert');
         $element->appendChild($dom->createTextNode('pie'));
         return $dom;
     } else {
         if (extension_loaded('Domxml')) {
             $dom = domxml_new_doc('1.0');
             $element = $dom->create_element('root');
             $root = $dom->append_child($element);
             $element = $dom->create_element('item');
             $element->set_attribute('type', 'fruit');
             $element->set_content('peach');
             $root->append_child($element);
             $element = $dom->create_element('item');
             $element->set_attribute('type', 'fruit');
             $element->set_content('plum');
             $root->append_child($element);
             $element = $dom->create_element('item');
             $element->set_attribute('type', 'vegetable');
             $element->set_content('carrot');
             $root->append_child($element);
             return $dom;
         } else {
             return 'No Dom Support';
         }
     }
 }
コード例 #23
0
ファイル: Assessor.php プロジェクト: armic/erpts
 function setDomDocument()
 {
     $this->domDocument = domxml_new_doc("1.0");
     $rec = $this->domDocument->create_element("Assessor");
     $rec = $this->domDocument->append_child($rec);
     $this->setDocNode("assessorID", $this->assessorID, $this->domDocument, $rec);
     $this->setDocNode("personID", $this->personID, $this->domDocument, $rec);
     $this->setDocNode("lastName", $this->lastName, $this->domDocument, $rec);
     $this->setDocNode("firstName", $this->firstName, $this->domDocument, $rec);
     $this->setDocNode("middleName", $this->middleName, $this->domDocument, $rec);
     $this->setDocNode("gender", $this->gender, $this->domDocument, $rec);
     $this->setDocNode("birthday", $this->birthday, $this->domDocument, $rec);
     $this->setDocNode("maritalStatus", $this->maritalStatus, $this->domDocument, $rec);
     $this->setDocNode("tin", $this->tin, $this->domDocument, $rec);
     if (count($this->addressArray)) {
         $this->setArrayDocNode("addressArray", $this->addressArray, $rec);
     }
     $this->setDocNode("telephone", $this->telephone, $this->domDocument, $rec);
     $this->setDocNode("mobileNumber", $this->mobileNumber, $this->domDocument, $rec);
     $this->setDocNode("email", $this->email, $this->domDocument, $rec);
     $this->setDocNode("position", $this->position, $this->domDocument, $rec);
 }
コード例 #24
0
ファイル: ipeer_export.php プロジェクト: eecian/Team08-iPeer
 function exportPhp4($db, $dbname, $tables)
 {
   $doc = domxml_new_doc('1.0');
   
   // create root node = database name
   $dbname_element = $doc->create_element($dbname);
   
   // create a new element for each table
   foreach($tables as $table)
   {
     $table_rows = getRows($db, $table);
     foreach($table_rows as $row)
     {
       $table_element = $doc->create_element($table);
       foreach($row as $fieldname => $value)
       {
         $row_element = $doc->create_element($fieldname);
         $row_element->append_child($doc->create_text_node($value));
         $table_element->append_child($row_element);
       }
       $dbname_element->append_child($table_element);
     }
   }
   $doc->append_child($dbname_element);
   
   $xml_content=$doc->dump_mem(FORMAT_XML);
   $xml_filename="ipeer_dump.xml";
   $xml_filesize=strlen($xml_content);
   
   header("HTTP/1.1 200 OK");
   header("Content-Disposition: attachment; filename=$xml_filename");
   header("Content-Length: $xml_filesize");
   header("Content-Type: application/force-download");
   header("Content-Transfer-Encoding: binary");
   header("Pragma: no-cache");
   header("Expires: 0");
   echo $xml_content;
 }
コード例 #25
0
ファイル: samba.php プロジェクト: jleexp/Code_Snippets
function SMB_SaveCfg($cfg,$smb,$sync) {
  global $DOCUMENT_ROOT,$SUB_ROOT;
  $doc = domxml_new_doc('1.0');
  $root = $doc->create_element('BEFS');
  $root = $doc->append_child($root);
  $pcc = $doc->create_element('Server');
  $pcc = $root->append_child($pcc);
  $pvalue = $doc->create_text_node($smb["Server"]);
  $pvalue = $pcc->append_child($pvalue);
  $pcc = $doc->create_element('Share');
  $pcc = $root->append_child($pcc);
  $pvalue = $doc->create_text_node($smb["Share"]);
  $pvalue = $pcc->append_child($pvalue);
  $pcc = $doc->create_element('Domain');
  $pcc = $root->append_child($pcc);
  $pvalue = $doc->create_text_node($smb["Domain"]);
  $pvalue = $pcc->append_child($pvalue);
  $pcc = $doc->create_element('User');
  $pcc = $root->append_child($pcc);
  $pvalue = $doc->create_text_node($smb["User"]);
  $pvalue = $pcc->append_child($pvalue);
  $pcc = $doc->create_element('Password');
  $pcc = $root->append_child($pcc);
  $pvalue = $doc->create_text_node($smb["Password"]);
  $pvalue = $pcc->append_child($pvalue);
  $xml_string = $doc->dump_mem(true);
  $fp=fopen($cfg,"w");
  fwrite($fp,$xml_string);
  fclose($fp);
  chown($cfg,"www");
  chgrp($cfg,"www");
  //Trigger Sync
  if ($sync==1) {
    exec("/usr/local/php/bin/php -q $DOCUMENT_ROOT/$SUB_ROOT/berpc/triggerput.asp 2 > /dev/null &");
  }
}
コード例 #26
0
ファイル: MergedReceipt.php プロジェクト: armic/erpts
 function setDomDocument()
 {
     $this->domDocument = domxml_new_doc("1.0");
     $rec = $this->domDocument->create_element("MergedReceipt");
     $rec = $this->domDocument->append_child($rec);
     $this->setDocNode("mergedReceiptID", $this->mergedReceiptID, $this->domDocument, $rec);
     $this->setDocNode("basicReceiptAmount", $this->basicReceiptAmount, $this->domDocument, $rec);
     $this->setDocNode("basicReceiptNumber", $this->basicReceiptNumber, $this->domDocument, $rec);
     $this->setDocNode("basicPreviousReceiptNumber", $this->basicPreviousReceiptNumber, $this->domDocument, $rec);
     $this->setDocNode("basicPreviousReceiptDate", $this->basicPreviousReceiptDate, $this->domDocument, $rec);
     $this->setDocNode("basicReceiptIDCSV", $this->basicReceiptIDCSV, $this->domDocument, $rec);
     $this->setDocNode("sefReceiptAmount", $this->sefReceiptAmount, $this->domDocument, $rec);
     $this->setDocNode("sefReceiptNumber", $this->sefReceiptNumber, $this->domDocument, $rec);
     $this->setDocNode("sefPreviousReceiptNumber", $this->sefPreviousReceiptNumber, $this->domDocument, $rec);
     $this->setDocNode("sefPreviousReceiptDate", $this->sefPreviousReceiptDate, $this->domDocument, $rec);
     $this->setDocNode("sefReceiptIDCSV", $this->sefReceiptIDCSV, $this->domDocument, $rec);
     $this->setDocNode("idleReceiptAmount", $this->idleReceiptAmount, $this->domDocument, $rec);
     $this->setDocNode("idleReceiptNumber", $this->idleReceiptNumber, $this->domDocument, $rec);
     $this->setDocNode("idlePreviousReceiptNumber", $this->idlePreviousReceiptNumber, $this->domDocument, $rec);
     $this->setDocNode("idlePreviousReceiptDate", $this->idlePreviousReceiptDate, $this->domDocument, $rec);
     $this->setDocNode("idleReceiptIDCSV", $this->idleReceiptIDCSV, $this->domDocument, $rec);
     $this->setDocNode("paymentMode", $this->paymentMode, $this->domDocument, $rec);
     $this->setDocNode("checkNumber", $this->checkNumber, $this->domDocument, $rec);
     $this->setDocNode("dateOfCheck", $this->dateOfCheck, $this->domDocument, $rec);
     $this->setDocNode("draweeBank", $this->draweeBank, $this->domDocument, $rec);
     $this->setDocNode("cityTreasurer", $this->cityTreasurer, $this->domDocument, $rec);
     $this->setDocNode("deputyTreasurer", $this->deputyTreasurer, $this->domDocument, $rec);
     $this->setDocNode("receiptDate", $this->receiptDate, $this->domDocument, $rec);
     $this->setDocNode("receivedFrom", $this->receivedFrom, $this->domDocument, $rec);
     $this->setDocNode("receivedFromName", $this->receivedFromName, $this->domDocument, $rec);
     $this->setDocNode("status", $this->status, $this->domDocument, $rec);
     $this->setDocNode("dateCreated", $this->dateCreated, $this->domDocument, $rec);
     $this->setDocNode("createdBy", $this->createdBy, $this->domDocument, $rec);
     $this->setDocNode("dateModified", $this->dateModified, $this->domDocument, $rec);
     $this->setDocNode("modifiedBy", $this->modifiedBy, $this->domDocument, $rec);
 }
コード例 #27
0
ファイル: TreasurySettings.php プロジェクト: armic/erpts
 function setDomDocument()
 {
     $this->domDocument = domxml_new_doc("1.0");
     $rec = $this->domDocument->create_element("TreasurySettings");
     $rec = $this->domDocument->append_child($rec);
     $this->setDocNode("penaltyLUT", $this->penaltyLUT, $this->domDocument, $rec);
     $this->setDocNode("annualDueDate", $this->annualDueDate, $this->domDocument, $rec);
     $this->setDocNode("pctRPTax", $this->pctRPTax, $this->domDocument, $rec);
     $this->setDocNode("pctSEF", $this->pctSEF, $this->domDocument, $rec);
     $this->setDocNode("pctIdle", $this->pctIdle, $this->domDocument, $rec);
     $this->setDocNode("discountPercentage", $this->discountPercentage, $this->domDocument, $rec);
     $this->setDocNode("discountPeriod", $this->discountPeriod, $this->domDocument, $rec);
     $this->setDocNode("advancedDiscountPercentage", $this->advancedDiscountPercentage, $this->domDocument, $rec);
     $this->setDocNode("q1AdvancedDiscountPercentage", $this->q1AdvancedDiscountPercentage, $this->domDocument, $rec);
 }
コード例 #28
0
 function build_xml()
 {
     $xml = domxml_new_doc("1.0");
     // create the elements
     $root = $xml->create_element("results");
     $response = $xml->create_element("response");
     $error = $xml->create_element("error");
     // create the text nodes
     $response_txt = $xml->create_text_node($this->response);
     $error_txt = $xml->create_text_node($this->errno);
     // append the elements & nodes
     $root = $xml->append_child($root);
     $response = $root->append_child($response);
     $error = $root->append_child($error);
     $response_txt = $response->append_child($response_txt);
     $error_txt = $error->append_child($error_txt);
     $xml = $xml->dump_mem();
     return $xml;
 }
コード例 #29
0
ファイル: RPTOP.php プロジェクト: armic/erpts
 function setDomDocument()
 {
     $this->domDocument = domxml_new_doc("1.0");
     $rec = $this->domDocument->create_element("RPTOP");
     $rec = $this->domDocument->append_child($rec);
     $this->setDocNode("rptopID", $this->rptopID, $this->domDocument, $rec);
     $this->setDocNode("rptopNumber", $this->rptopNumber, $this->domDocument, $rec);
     $this->setDocNode("rptopDate", $this->rptopDate, $this->domDocument, $rec);
     if (is_a($this->owner, Owner) && $this->owner != "") {
         $this->setObjectDocNode("owner", $this->owner, $this->domDocument, $rec, "Owner");
     }
     $this->setDocNode("taxableYear", $this->taxableYear, $this->domDocument, $rec);
     $this->setDocNode("cityTreasurer", $this->cityTreasurer, $this->domDocument, $rec);
     $this->setDocNode("cityAssessor", $this->cityAssessor, $this->domDocument, $rec);
     if (count($this->tdArray)) {
         $this->setArrayDocNode("tdArray", $this->tdArray, $rec);
     }
     $this->setDocNode("landTotalMarketValue", $this->landTotalMarketValue, $this->domDocument, $rec);
     $this->setDocNode("landTotalAssessedValue", $this->landTotalAssessedValue, $this->domDocument, $rec);
     $this->setDocNode("plantTotalMarketValue", $this->plantTotalMarketValue, $this->domDocument, $rec);
     $this->setDocNode("plantTotalAssessedValue", $this->plantTotalAssessedValue, $this->domDocument, $rec);
     $this->setDocNode("bldgTotalMarketValue", $this->bldgTotalMarketValue, $this->domDocument, $rec);
     $this->setDocNode("bldgTotalAssessedValue", $this->bldgTotalAssessedValue, $this->domDocument, $rec);
     $this->setDocNode("machTotalMarketValue", $this->machTotalMarketValue, $this->domDocument, $rec);
     $this->setDocNode("machTotalAssessedValue", $this->machTotalAssessedValue, $this->domDocument, $rec);
     $this->setDocNode("totalMarketValue", $this->totalMarketValue, $this->domDocument, $rec);
     $this->setDocNode("totalAssessedValue", $this->totalAssessedValue, $this->domDocument, $rec);
     $this->setDocNode("dateCreated", $this->dateCreated, $this->domDocument, $rec);
     $this->setDocNode("createdBy", $this->createdBy, $this->domDocument, $rec);
     $this->setDocNode("dateModified", $this->dateModified, $this->domDocument, $rec);
     $this->setDocNode("modifiedBy", $this->modifiedBy, $this->domDocument, $rec);
     $this->setDocNode("archive", $this->archive, $this->domDocument, $rec);
 }
コード例 #30
0
ファイル: _Payment.php プロジェクト: armic/erpts
 function setDomDocument()
 {
     $this->domDocument = domxml_new_doc("1.0");
     $rec = $this->domDocument->create_element("Payment");
     $rec = $this->domDocument->append_child($rec);
     $this->setDocNode("paymentID", $this->paymentID, $this->domDocument, $rec);
     $this->setDocNode("tdID", $this->tdID, $this->domDocument, $rec);
     $this->setDocNode("dueID", $this->dueID, $this->domDocument, $rec);
     $this->setDocNode("dueType", $this->dueType, $this->domDocument, $rec);
     $this->setDocNode("backtaxTDID", $this->backtaxTDID, $this->domDocument, $rec);
     $this->setDocNode("taxDue", $this->taxDue, $this->domDocument, $rec);
     $this->setDocNode("earlyPaymentDiscount", $this->earlyPaymentDiscount, $this->domDocument, $rec);
     $this->setDocNode("advancedPaymentDiscount", $this->advancedPaymentDiscount, $this->domDocument, $rec);
     $this->setDocNode("penalty", $this->penalty, $this->domDocument, $rec);
     $this->setDocNode("amnesty", $this->amnesty, $this->domDocument, $rec);
     $this->setDocNode("balanceDue", $this->balanceDue, $this->domDocument, $rec);
     $this->setDocNode("amountPaid", $this->amountPaid, $this->domDocument, $rec);
     $this->setDocNode("dueDate", $this->dueDate, $this->domDocument, $rec);
     $this->setDocNode("paymentDate", $this->paymentDate, $this->domDocument, $rec);
     $this->setDocNode("ownerID", $this->ownerID, $this->domDocument, $rec);
     $this->setDocNode("status", $this->status, $this->domDocument, $rec);
 }