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 - 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
Add a sub-element
void
AddSubTag
(object An &$v)
-
object An
&$v: XMLElement to be appended to the array of sub-elements
Count the number of elements
int
CountElements
()
Accessor for a single attribute
string
GetAttribute
(string $attr)
-
string
$attr: The name of the attribute.
Accessor for the attributes
array
GetAttributes
()
Accessor for the content
array
GetContent
()
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.
array
GetElements
([ $tag = null], [ $recursive = false])
Accessor for the full-namespaced tag name
string
GetNSTag
()
Return an array of elements matching the specified path
array
GetPath
( $path)
Accessor for the tag name
string
GetTag
()
Add a new sub-element
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 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
Render just the internal content
string
RenderContent
([ $indent = 0], [ $nslist = null], [ $force_xmlns = false])
-
$indent
-
$nslist
-
$force_xmlns
Set an element attribute to a value
void
SetAttribute
(string $k, string $v)
-
string
$k: The attribute name
-
string
$v: The attribute value
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