本文整理汇总了PHP中domxml_new_doc函数的典型用法代码示例。如果您正苦于以下问题:PHP domxml_new_doc函数的具体用法?PHP domxml_new_doc怎么用?PHP domxml_new_doc使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了domxml_new_doc函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setDomDocument
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: array2xml
function array2xml($array)
{
if (!is_array($array)) {
return false;
}
$this->array = $array;
$this->dom = domxml_new_doc("1.0");
}
示例3: GetSOA
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: domxml_new_doc
function &createNew($version)
{
if ($GLOBALS['xmlv'] == XMLV4) {
$this->node = domxml_new_doc($version);
} else {
$this->node = new DOMDocument($version);
}
return $this;
}
示例5: setDomDocument
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: setDomDocument
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: setDomStoreyRecords
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: setDomDocument
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: setDomDocument
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: setDomDocument
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: setDomDocument
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: setDomDocument
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: setDomDocument
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: setDomDocument
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: setDomDocument
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);
}
}