Warning: strftime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /usr/share/php/PhpDocumentor/phpDocumentor/Smarty-2.6.0/libs/Smarty_Compiler.class.php on line 370

## XMLElement

Description
Warning: strftime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /usr/share/php/PhpDocumentor/phpDocumentor/Smarty-2.6.0/libs/Smarty_Compiler.class.php on line 370

A class for XML elements which may have attributes, or contain other XML sub-elements

Located in /XMLElement.php (line 20)

Variable Summary
mixed $attributes
mixed $content
mixed $tagname
mixed $xmlns
mixed $_parent
Method Summary
XMLElement __construct (string $tagname, [mixed $content = false], [array $attributes = false], [string $xmlns = null])
void AddSubTag (object An &$v)
int CountElements ()
string GetAttribute (string $attr)
array GetAttributes ()
array GetContent ()
array GetElements ([ $tag = null], [ $recursive = false])
string GetNSTag ()
array GetPath ( $path)
string GetTag ()
objectref &NewElement (string $tagname, [mixed $content = false], [array $attributes = false], [ $xmlns = null])
void Render ([int $indent = 0], [ $xmldef = ""], [ $nslist = null], [ $force_xmlns = false])
string RenderContent ([ $indent = 0], [ $nslist = null], [ $force_xmlns = false])
void SetAttribute (string $k, string $v)
void SetContent (mixed $v)
void __tostring ()
Variables
Strict Standards: Only variables should be passed by reference in /usr/share/php/PhpDocumentor/phpDocumentor/Smarty-2.6.0/libs/Smarty_Compiler.class.php on line 712 Warning: strftime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /usr/share/php/PhpDocumentor/phpDocumentor/Smarty-2.6.0/libs/Smarty_Compiler.class.php on line 370
mixed $attributes (line 23)

- access: protected

mixed $content (line 24)

- access: protected

mixed $tagname (line 21)

- access: protected

mixed $xmlns (line 22)

- access: protected

mixed $_parent (line 25)

- access: protected

Methods
Strict Standards: Only variables should be passed by reference in /usr/share/php/PhpDocumentor/phpDocumentor/Smarty-2.6.0/libs/Smarty_Compiler.class.php on line 712 Warning: strftime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /usr/share/php/PhpDocumentor/phpDocumentor/Smarty-2.6.0/libs/Smarty_Compiler.class.php on line 370
Constructor __construct (line 35)

Constructor - nothing fancy as yet.

XMLElement __construct (string $tagname, [mixed $content = false], [array $attributes = false], [string $xmlns = null])

- string $tagname: The tag name of the new element
- mixed $content: Either a string of content, or an array of sub-elements
- array $attributes: An array of attribute name/value pairs
- string $xmlns: An XML namespace specifier

AddSubTag (line 215)

Add a sub-element

void AddSubTag (object An &$v)

- object An &$v: XMLElement to be appended to the array of sub-elements

CountElements (line 68)

Count the number of elements

- return: The number of elements

int CountElements ()
GetAttribute (line 121)

Accessor for a single attribute

- return: The value of that attribute of the element

string GetAttribute (string $attr)

- string $attr: The name of the attribute.

GetAttributes (line 132)

Accessor for the attributes

- return: The attributes of this element

array GetAttributes ()
GetContent (line 141)

Accessor for the content

- return: The content of this element

array GetContent ()
GetElements (line 151)

Return an array of elements matching the specified tag, or all elements if no tag is supplied.

Unlike GetContent() this will always return an array.

- return: The XMLElements within the tree which match this tag

array GetElements ([ $tag = null], [ $recursive = false])

- $tag
- $recursive

GetNSTag (line 112)

Accessor for the full-namespaced tag name

- return: The tag name of the element, prefixed by the namespace

string GetNSTag ()
GetPath (line 175)

Return an array of elements matching the specified path

- return: The XMLElements within the tree which match this tag

array GetPath ( $path)

- $path

GetTag (line 103)

Accessor for the tag name

- return: The tag name of the element

string GetTag ()
NewElement (line 230)

Add a new sub-element

- return: A reference to the new XMLElement

objectref &NewElement (string $tagname, [mixed $content = false], [array $attributes = false], [ $xmlns = null])

- string $tagname: The tag name of the new element
- mixed $content: Either a string of content, or an array of sub-elements
- array $attributes: An array of attribute name/value pairs
- $xmlns

Render (line 273)

Render the document tree into (nicely formatted) XML

void Render ([int $indent = 0], [ $xmldef = ""], [ $nslist = null], [ $force_xmlns = false])

- int $indent: The indenting level for the pretty formatting of the element
- $xmldef
- $nslist
- $force_xmlns

RenderContent (line 243)

Render just the internal content

- return: The content of this element, as a string without this element wrapping it.

string RenderContent ([ $indent = 0], [ $nslist = null], [ $force_xmlns = false])

- $indent
- $nslist
- $force_xmlns

SetAttribute (line 81)

Set an element attribute to a value

void SetAttribute (string $k, string $v)

- string $k: The attribute name
- string $v: The attribute value

SetContent (line 94)

Set the whole content to a value

void SetContent (mixed $v)

- mixed $v: The element content, which may be text, or an array of sub-elements

__tostring (line 324)
void __tostring ()
Warning: strftime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /usr/share/php/PhpDocumentor/phpDocumentor/Smarty-2.6.0/libs/Smarty_Compiler.class.php on line 370

Documentation generated on Wed, 04 Jul 2012 07:06:17 +0000 by phpDocumentor 1.4.3