Cheetah
inc
classes
ChWsbXmlNode.php
Go to the documentation of this file.
1
<?
php
2
8
class
ChWsbXmlNode
9
{
10
var
$name
=
''
;
11
var
$value
=
''
;
12
var
$children
= array();
13
14
function
__construct
( $name1 =
''
, $value1 =
''
)
15
{
16
$this->
name
= $name1;
17
$this->
value
= $value1;
18
}
19
function
addChild
( $node )
20
{
21
if
( is_a($node,
'ChWsbXmlNode'
) )
22
$this->children[] = $node;
23
}
24
function
getXMLText
()
25
{
26
$result =
"<{$this->name}>"
;
27
if
(
empty
($this->children) )
28
$result .=
$this->value
;
29
else
30
foreach
( $this->children
as
$child )
31
$result .= $child->getXMLText();
32
$result .=
"</{$this->name}>"
;
33
return
$result;
34
}
35
36
function
GetXMLHtml
()
37
{
38
$sRes =
'<?xml version="1.0" encoding="UTF-8"?>'
. $this->
getXMLText
();
39
return
$sRes;
40
}
41
}
ChWsbXmlNode
Definition:
ChWsbXmlNode.php:9
ChWsbXmlNode\__construct
__construct( $name1='', $value1='')
Definition:
ChWsbXmlNode.php:14
ChWsbXmlNode\addChild
addChild( $node)
Definition:
ChWsbXmlNode.php:19
name
Core AllowHostnameUnderscore underscores are not permitted in host most browsers do the right thing when faced with an underscore in the host name
Definition:
Core.AllowHostnameUnderscore.txt:11
ChWsbXmlNode\getXMLText
getXMLText()
Definition:
ChWsbXmlNode.php:24
php
ChWsbXmlNode\$value
$value
Definition:
ChWsbXmlNode.php:11
ChWsbXmlNode\GetXMLHtml
GetXMLHtml()
Definition:
ChWsbXmlNode.php:36
ChWsbXmlNode\$name
$name
Definition:
ChWsbXmlNode.php:10
value
URI Base such as when URI MakeAbsolute is on You may use a non absolute URI for this value
Definition:
URI.Base.txt:11
ChWsbXmlNode\$children
$children
Definition:
ChWsbXmlNode.php:12
empty
Attr AllowedRel this is empty
Definition:
Attr.AllowedRel.txt:7
as
as
Definition:
Filter.ExtractStyleBlocks.Escaping.txt:10
Generated by
1.8.20