This class is used for building and rendering an XML tag.
This class is the base class for the HTMLTagClass.
This is part of the phphtmllib libraries released under the LGPL license.
Located in Program_Root/XMLTagClass.inc (line 35)
Container | --XMLTagClass
Class | Description |
---|---|
HTMLTagClass | Base class for all HTML Tag classes. |
SVGTagClass | This overrides the WMLTagClass to define some methods that set some commonly used SVG tag attributes. |
WMLTagClass | Base class for all WML Tag classes. |
XMLtag | xml tag class |
The constructor
- n items of content to add
- the tag name
- the attributes array can be in name => value or just value
This returns the tag declared for this class.
This should be used in favor of accessing the $this->_tag directly.
This method gets the name of the tag
This function is responsible for rendering the tag and its contents
- the current indentation level for the tag
clear all attributes and start with new attributes
Associative array of name="value" pairs of tag atributes. ie array("border"=>"0", "class"=>"hover");
This method turns on the automatic wrapping of the tag's content inside the CDATA wrapper for XML
TRUE or FALSE
This function turns on the collapse flag
- the collapse flag
- the indent flag DEFAULT: TRUE;
set the newline_after_content flag
TRUE or FALSE
set the newline_after_opentag flag
TRUE or FALSE
add a single attribute (name="value")
attribute name
the value.
add multiple attributes (name="value")
Associative array of name="value" pairs of tag atributes. ie array("border"=>"0", "class"=>"hover");
This method sets the name of the tag
- the tag name
this builds an attribute for an XML tag.
XML attributes MUST have a name AND a value.
- $name attribute name
- $value attribute value
get the nth element from content array
the cell to get
This function checks to see if
there is only 1 content data, and its not an object, then it auto sets some of the indentation flags
this function is reposnsible for rendering the closing tag (if any)
- the indent level
this function is reponsible for rendering the pcdata, or content of the tag (if any)
- the indent level
this function is responsible for rendering the open tag.
- the indent level
- do we add the finish / if we have no close tag and no content?
This method is used to set the bitmask flags for this tag. It tells the class how to render the tag.
NOTE: the child class can override this to set the options
Inherited From Container
Container::Container()
Container::add()
Container::add_reference()
Container::count_content()
Container::get_indent_flag()
Container::push()
Container::push_reference()
Container::render()
Container::reset_content()
Container::set_collapse()
Container::set_indent_flag()
Container::_set_flags()
Documention generated on Thu, 31 Jul 2003 18:34:05 -0700 by phpDocumentor 1.2.0