LVU_DOMDOCUMENT
LVU_DOMDOCUMENT
( $xmlFile, [ $debug = FALSE])
gets a data array out of a node child list
each child not found in $this->tmpImpArr[$key]['COLS'] is added to $notUsed
array
getDataArray
(string $key, &$node, array &$notUsed, [boolean $debug = FALSE], DOMnode $node)
-
string
$key
-
DOMnode
$node
-
array
&$notUsed
-
boolean
$debug
-
&$node
returns the root node of myDom
DOMElement
getRoot
()
gibt einen array mit dem ersten wurzel elemt zurück
array
getRootTags
([ $debug = FALSE])
returns an array with xml tag desc array
void
getTagDescArr
([int $maxLevels = 999], [int $reqNOC = 0], [ $debug = FALSE], bool $debug
@)
-
int
$maxLevels: (999 = unlimited)
-
int
$reqNOC: see THIS::populateAllTagsArr
-
bool
$debug
@: returns array
-
$debug
imports the data of the xml file
void
importData
([DOMnode $node = NULL], [boolean $delTab = NULL], [boolean $debug = FALSE])
-
DOMnode
$node
-
boolean
$delTab
-
boolean
$debug
imports a subtree
void
importSubTreeData
(array $parData, string $tblTag, string $rowTag, &$node, [boolean $debug = FALSE], DOMnode $node)
-
array
$parData
-
string
$tblTag
-
string
$rowTag
-
DOMnode
$node
-
boolean
$debug
-
&$node
inserts single multivalue tag
for each child a db replace statement is executed returns the number of rows processed
int
insert_smvRow
(string $smvkey, DOMNode $node, array $row, boolean $debug)
-
string
$smvkey
-
DOMNode
$node
-
array
$row
-
boolean
$debug
returns an array of tag descriptions
use $reqNOC = 2 (require number of children) to get only nodes which are parent of a complex element
void
populateAllTagsArr
( &$tagArr, [int $maxLevels = 999], [int $reqNOC = 0], [DOMnode $node = NULL], [string $parentName = "ROOT"], [string $pPath = ""], [bool $debug = FALSE], array $arr)
-
array
$arr
-
DOMnode
$node
-
int
$maxLevels: (999 = unlimited)
-
int
$reqNOC
-
string
$parentName
-
string
$pPath: path to root (exmpl TBL>ROW>COL)
-
bool
$debug
-
&$tagArr
populates a tmpImpArr element
boolean
populate_tmpImpArr
(string $tblTag, string $rowTag, [boolean $debug = FALSE])
-
string
$tblTag
-
string
$rowTag
-
boolean
$debug
echos a node used for debuging
void
print_node
([DOMNode $node = NULL], [ $fullDebug = FALSE])