Class HTMLTagClass

Description

Base class for all HTML Tag classes.

Tag class renders an html tag, its attributes, the content (if any), and close tag (if needed).

Located in Program_Root/HTMLTagClass.inc (line 31)

Container
   |
   --XMLTagClass
      |
      --HTMLTagClass
Direct descendents
Class Description
Atag <A> tag class
ABBRtag <ABBR> tag class
ACRONYMtag <ACRONYM> tag class
ADDRESStag <ADDRESS> tag class
APPLETtag <APPLET> tag class
AREAtag <AREA> tag class
Btag
BASEtag <BASE> tag class
BDOtag <BDO> tag class
BIGtag <BIG> tag class
BLOCKQUOTEtag <BLOCKQUOTE> tag class
BODYtag <BODY> tag class
BRtag
tag class
BUTTONtag <BUTTON> tag class
CAPTIONtag <CAPTION> tag class This element defines a table caption.
CENTERtag <CENTER> tag class.
CITEtag <CITE> tag class
CODEtag
COLtag <COL> tag class
COLGROUPtag <COLGROUP> tag class
DDtag <DD> tag class
DELtag <DEL> tag class
DFNtag <DFN> tag class
DIVtag <DIV> tag class
DLtag <DL> tag class
DOCTYPEtag <!DOCTYPE> tag class
DTtag <DT> tag class
EMtag <EM> tag class
FIELDSETtag <FIELDSET> tag class
FONTtag <FONT> tag class
FORMtag FORMtag <FORM> tag
FRAMEtag <FRAME> tag class
FRAMESETtag <FRAMESET> tag class
H1tag <H1> tag class
H2tag <H2> tag class
H3tag <H3> tag class
H4tag <H4> tag class
H5tag <H5> tag class
H6tag <H6> tag class
HEADtag <HEAD> tag class
HRtag <HR> tag class
HTMLtag <HTML> tag class.
Itag
IFRAMEtag <IFRAME> tag class
IMGtag <IMG> tag class
INPUTtag INPUTtag <INPUT> tag
INStag <INS> tag class
KBDtag
LABELtag <LABEL> tag class
LEGENDtag <LEGEND> tag class
LItag <LI> tag class
LINKtag <LINK> tag class
MAPtag <MAP> tag class
METAtag <META> tag class
NOBRtag <NOBR> tag class
NOFRAMEStag <NOFRAMES> tag class
NOSCRIPTtag <NOSCRIPT> tag class
OBJECTtag <OBJECT> tag class
OLtag
OPTGROUPtag <OPTGROUP> tag class
OPTIONtag <OPTION> tag class
Ptag <P> tag class
PARAMtag <PARAM> tag class
PREtag
Qtag <Q> tag class
Stag <S> tag class
SAMPtag
SCRIPTtag <SCRIPT> tag class
SELECTtag <SELECT> tag class
SMALLtag <SMALL> tag class
SPANtag <SPAN> tag class
STRONGtag <STRONG> tag class
STYLEtag <STYLE> tag class
SUBtag <SUB> tag class
SUPtag <SUP> tag class
TABLEtag <TABLE> tag class
TDtag Table data <TD> class.
TEXTAREAtag <TEXTAREA> tag class
THtag Table Header <TH> class.
TITLEtag <TITLE> tag class
TRtag Table Row <TR> class.
TTtag <TT> tag class
Utag <U> tag class
VARtag
XMPtag <XMP> tag class
Method Summary
void HTMLTagClass ([array $attributes = NULL], mixed 1)
string render ([int $indent_level = NULL], mixed $output_debug)
void set_class (string $value)
void set_id (string $value)
void set_style (string $value)
the _build_attribute_string (string $name, mixed $value, mixed $debug)
void _prepare_flags ()
void _render_tag_debug (mixed $indent_level)
Variables

Inherited Variables

Inherited from Container

Container::$_flags
Methods
Constructor HTMLTagClass (line 89)

Class Constructor

  • access: public
void HTMLTagClass ([array $attributes = NULL], mixed 1)
  • mixed 1:

    You can have any number of parameters that will be added to the content of the tag automatically.

  • array $attributes:

    - Associative array of name="value" pairs of tag atributes. ie array("border"=>0, "class"=>"hover");

render (line 128)

Renders the tag, attributes, content and close tag.

  • access: public
string render ([int $indent_level = NULL], mixed $output_debug)
  • int $indent_level:

    the indentation level for this tag.


Redefinition of:
XMLTagClass::render()
This function is responsible for rendering the tag and its contents
set_class (line 172)

This function is a shorthand helper to setting the class attribute on a tag.

void set_class (string $value)
  • string $value:

    - the class value.

set_id (line 183)

This function is a shorthand helper to setting the id attribute on a tag.

void set_id (string $value)
  • string $value:

    - the class value.

set_style (line 161)

This function is a shorthand helper to setting the style attribute on a tag.

void set_style (string $value)
  • string $value:

    - the style value.

_build_attribute_string (line 379)

this builds an attribute for a tag.

It also filters out any attributes that shouldn't be rendered if they are in the $this->_xhtml_strict_attributes array and HTML_RENDER_TYPE = XHTML STRICT

  • return:

    tag attribute name=value pair. to be added to the tag.

the _build_attribute_string (string $name, mixed $value, mixed $debug)
  • string $name:

    - $name attribute name

  • mixed $value:

    - $value attribute value


Redefinition of:
XMLTagClass::_build_attribute_string()
this builds an attribute for an XML tag.
_prepare_flags (line 440)

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

void _prepare_flags ()

Redefinition of:
XMLTagClass::_prepare_flags()
This function checks to see if
_render_tag_debug (line 244)

This renders that open tag in debug mode.

We do this as a seperate function, so we can override this by the child tag, so it can add a link on content or one of the attributes.

void _render_tag_debug (mixed $indent_level)

Inherited Methods

Inherited From XMLTagClass

XMLTagClass::XMLTagClass()
XMLTagClass::get_tag()
XMLTagClass::get_tag_name()
XMLTagClass::render()
XMLTagClass::reset_attributes()
XMLTagClass::set_cdata_flag()
XMLTagClass::set_collapse()
XMLTagClass::set_newline_after_closetag()
XMLTagClass::set_newline_after_opentag()
XMLTagClass::set_tag_attribute()
XMLTagClass::set_tag_attributes()
XMLTagClass::set_tag_name()
XMLTagClass::_build_attribute_string()
XMLTagClass::_get_element()
XMLTagClass::_prepare_flags()
XMLTagClass::_render_close_tag()
XMLTagClass::_render_content()
XMLTagClass::_render_open_tag()
XMLTagClass::_set_flags()

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:32:49 -0700 by phpDocumentor 1.2.0