Location: PHPKode > scripts > Mocha > HTML.opt.php
<?php

// HTML (Optimised Code)

// Modified: 01-Feb-2002 11:15:19
//  Version: 1.0.0
//   Author: Colin Tucker
//    Email: hide@address.com
//     Site: mocha.omenmedia.com

require_once("Mocha/Collection.php");class HTMLObject{function draw(){return null;}function render(){echo $this->draw();}function HTMLObject(){}}class HTMLControl extends HTMLObject{function HTMLControl(){$this->HTMLObject();HTMLControl::asDefault();}var $_colors;var $_fontSize;var $_fontFace;function setColor($name=null,$color=null){if(isset($name)&&isset($color)){$this->_colors[$name]=$color;}return $this;}function setColors($colors=null){if(isset($colors)){$this->_colors=$colors;}return $this;}function setFontSize($fontSize=null){if(isset($fontSize)){$this->_fontSize=$fontSize;}return $this;}function setFontFace($fontFace=null){if(isset($fontFace)){$this->_fontFace=$fontFace;}return $this;}function getColor($name=null){return $this->_colors[$name];}function getColors(){return $this->_colors;}function getFontSize(){return $this->_fontSize;}function getFontFace(){return $this->_fontFace;}function getFontSizePt(){$points=array(1=>7.5,2=>10,3=>12,4=>13.5,5=>18,6=>24,7=>36);return $points[$this->_fontSize];}function unsetColor($name=null){unset($this->_color[$name]);return $this;}function unsetColors(){unset($this->_colors);return $this;}function unsetFontSize(){unset($this->_fontSize);return $this;}function unsetFontFace(){unset($this->_fontFace);return $this;}function asDefault(){$this->setFontSize(2);$this->setColors(array());$this->setFontFace('Verdana,Arial,Helvetica');return $this;}}class HTMLContainer extends HTMLObject{function addElement($element=null){if(isset($element)){$this->_elements->add((is_object($element)?$element:new HTMLString($element)));}return $this;}function draw(){$elements=$this->_elements->enumerator();while($elements->more()){$element=$elements->next();$html.=$element->draw();}return $html;}function HTMLContainer(){$this->HTMLObject();HTMLContainer::asDefault();}var $_elements;function setElements($elements=null){if(isset($elements)){$this->_elements=$elements;}return $this;}function getElements(){return $this->_elements;}function unsetElements(){unset($this->_elements);return $this;}function asDefault(){$this->setElements(new Collection());return $this;}}class HTMLDocument extends HTMLObject{function draw(){return "<html>".$this->drawHead().$this->drawBody()."</html>";}function drawBody(){return(is_object($this->_body)?$this->_body->draw():null);}function drawHead(){return(is_object($this->_head)?$this->_head->draw():null);}function HTMLDocument($title=null){$this->HTMLObject();HTMLDocument::asDefault();HTMLDocument::fromArguments($title);}var $_body;var $_head;function setBody($body=null){if(isset($body)){$this->_body=$body;}return $this;}function setHead($head=null){if(isset($head)){$this->_head=$head;}return $this;}function &getBody(){return $this->_body;}function &getHead(){return $this->_head;}function unsetBody(){unset($this->_body);return $this;}function unsetHead(){unset($this->_head);return $this;}function asDefault(){$this->setBody(new HTMLBodyElement());return $this;}function fromArguments($title=null){$this->setHead(new HTMLHeadElement($title));return $this;}}class HTMLEntity extends HTMLObject{function draw(){return(isset($this->_code)?"&".$this->_code.";":null);}function HTMLEntity($code=null){$this->HTMLObject();HTMLEntity::fromArguments($code);}var $_code;function setCode($code=null){if(isset($code)){$this->_code=$code;}return $this;}function getCode(){return $this->_code;}function unsetCode(){unset($this->_code);return $this;}function fromArguments($code=null){$this->setCode($code);return $this;}}class HTMLString extends HTMLObject{function draw(){return(isset($this->_text)?($this->_escape?htmlentities($this->_text):$this->_text):null);}function HTMLString($text=null){$this->HTMLObject();HTMLString::fromArguments($text);}var $_text;var $_escape;function setText($text=null){if(isset($text)){$this->_text=$text;}return $this;}function setEscape($escape=null){if(isset($escape)){$this->_escape=$escape;}return $this;}function getText(){return $this->_text;}function getEscape(){return $this->_escape;}function unsetText(){unset($this->_text);return $this;}function unsetEscape(){unset($this->_escape);return $this;}function fromArguments($text=null){$this->setText($text);$this->setEscape(true);return $this;}}class HTMLElement extends HTMLObject{function addEvent($event=null,$handler=null){if(isset($event)&&isset($handler)){$this->_events[$event]=$handler;}return $this;}function addBoolean($codeName=null,$htmlName=null){if(isset($codeName)){$this->_booleans[$codeName]=(isset($htmlName)?$htmlName:strtolower($codeName));}return $this;}function addProperty($codeName=null,$htmlName=null){if(isset($codeName)){$this->_properties[$codeName]=(isset($htmlName)?$htmlName:strtolower($codeName));}return $this;}function draw(){return $this->drawStart();}function drawEnd(){return(isset($this->_tag)?"</".$this->_tag.">":null);}function drawStart(){return(isset($this->_tag)?"<".$this->getTag().$this->drawEvents().$this->drawBooleans().$this->drawProperties().">":null);}function drawEvents(){foreach($this->_events as $event=>$handler){$html.=" $event=\"$handler\"";}return $html;}function drawBooleans(){foreach($this->_booleans as $codeName=>$htmlName){$codeName="_$codeName";if($this->$codeName){$html.=" $htmlName";}}return $html;}function drawProperties(){foreach($this->_properties as $codeName=>$htmlName){$codeName="_$codeName";if(isset($this->$codeName)){$html.=" $htmlName=\"{$this->$codeName}\"";}}return $html;}function HTMLElement(){$this->HTMLObject();HTMLElement::asDefault();HTMLElement::hasProperties();}var $_id;var $_tag;var $_title;var $_style;var $_events;var $_booleans;var $_properties;var $_className;function setId($id=null){if(isset($id)){$this->_id=$id;}return $this;}function setTag($tag=null){if(isset($tag)){$this->_tag=$tag;}return $this;}function setTitle($title=null){if(isset($title)){$this->_title=$title;}return $this;}function setStyle($style=null){if(isset($style)){$this->_style=$style;}return $this;}function setEvents($events=null){if(isset($events)){$this->_events=$events;}return $this;}function setBooleans($booleans=null){if(isset($booleans)){$this->_booleans=$booleans;}return $this;}function setProperties($properties=null){if(isset($properties)){$this->_properties=$properties;}return $this;}function setClassName($className=null){if(isset($className)){$this->_className=$className;}return $this;}function getId(){return $this->_id;}function getTag(){return $this->_tag;}function getTitle(){return $this->_title;}function getStyle(){return $this->_style;}function getEvents(){return $this->_events;}function getBooleans(){return $this->_booleans;}function getProperties(){return $this->_properties;}function getClassName(){return $this->_className;}function unsetId(){unset($this->_id);return $this;}function unsetTag(){unset($this->_tag);return $this;}function unsetTitle(){unset($this->_title);return $this;}function unsetStyle(){unset($this->_style);return $this;}function unsetEvents(){unset($this->_events);return $this;}function unsetBooleans(){unset($this->_booleans);return $this;}function unsetProperties(){unset($this->_properties);return $this;}function unsetClassName(){unset($this->_className);return $this;}function asDefault(){$this->setEvents(array());$this->setBooleans(array());$this->setProperties(array());return $this;}function hasProperties(){$this->addProperty('id');$this->addProperty('title');$this->addProperty('style');$this->addProperty('className','class');return $this;}}class HTMLSingularElement extends HTMLElement{function draw(){return(isset($this->_tag)?$this->drawStart().$this->drawElement().$this->drawEnd():null);}function drawElement(){return(is_object($this->_element)?$this->_element->draw():null);}function HTMLSingularElement(){$this->HTMLElement();HTMLSingularElement::asDefault();}var $_element;function setElement($element=null){if(isset($element)){$this->_element=(is_object($element)?$element:new HTMLString($element));}return $this;}function getElement(){return $this->_element;}function unsetElement(){unset($this->_element);return $this;}function asDefault(){return $this;}}class HTMLContainerElement extends HTMLElement{function addElement($element=null){if(isset($element)){$this->_container->addElement($element);}return $this;}function draw(){return(isset($this->_tag)?$this->drawStart().$this->_container->draw().$this->drawEnd():null);}function HTMLContainerElement(){$this->HTMLElement();HTMLContainerElement::asDefault();}var $_container;function setContainer($container=null){if(isset($container)){$this->_container=$container;}return $this;}function getContainer(){return $this->_container;}function unsetContainer(){unset($this->_container);return $this;}function asDefault(){$this->setContainer(new HTMLContainer());return $this;}}class HTMLAnchorElement extends HTMLSingularElement{function HTMLAnchorElement($name=null,$element=null){$this->HTMLSingularElement();HTMLAnchorElement::asDefault();HTMLAnchorElement::hasProperties();HTMLAnchorElement::fromArguments($name,$element);}var $_href;var $_name;var $_target;function setHref($href=null){if(isset($href)){$this->_href=$href;}return $this;}function setName($name=null){if(isset($name)){$this->_name=$name;}return $this;}function setTarget($target=null){if(isset($target)){$this->_target=$target;}return $this;}function getHref(){return $this->_href;}function getName(){return $this->_name;}function getTarget(){return $this->_target;}function unsetHref(){unset($this->_href);return $this;}function unsetName(){unset($this->_name);return $this;}function unsetTarget(){unset($this->_target);return $this;}function asDefault(){$this->setTag('a');return $this;}function hasProperties(){$this->addProperty('href');$this->addProperty('name');$this->addProperty('target');return $this;}function fromArguments($name=null,$element=null){$this->setName($name);$this->setElement($element);return $this;}}class HTMLAppletElement extends HTMLContainerElement{function HTMLAppletElement($code=null,$name=null,$width=null,$height=null,$align=null){$this->HTMLContainerElement();HTMLAppletElement::asDefault();HTMLAppletElement::hasProperties();HTMLAppletElement::fromArguments($code,$name,$width,$height,$align);}var $_alt;var $_code;var $_align;var $_width;var $_name;var $_height;var $_hSpace;var $_vSpace;var $_codeBase;function setAlt($alt=null){if(isset($alt)){$this->_alt=$alt;}return $this;}function setCode($code=null){if(isset($code)){$this->_code=$code;}return $this;}function setAlign($align=null){if(isset($align)){$this->_align=$align;}return $this;}function setWidth($width=null){if(isset($width)){$this->_width=$width;}return $this;}function setName($name=null){if(isset($name)){$this->_name=$name;}return $this;}function setHeight($height=null){if(isset($height)){$this->_height=$height;}return $this;}function setHSpace($hSpace=null){if(isset($hSpace)){$this->_hSpace=$hSpace;}return $this;}function setVSpace($vSpace=null){if(isset($vSpace)){$this->_vSpace=$vSpace;}return $this;}function setCodeBase($codeBase=null){if(isset($codeBase)){$this->_codeBase=$codeBase;}return $this;}function getAlt(){return $this->_alt;}function getCode(){return $this->_code;}function getAlign(){return $this->_align;}function getWidth(){return $this->_width;}function getName(){return $this->_name;}function getHeight(){return $this->_height;}function getHSpace(){return $this->_hSpace;}function getVSpace(){return $this->_vSpace;}function getCodeBase(){return $this->_codeBase;}function unsetAlt(){unset($this->_alt);return $this;}function unsetCode(){unset($this->_code);return $this;}function unsetAlign(){unset($this->_align);return $this;}function unsetWidth(){unset($this->_width);return $this;}function unsetName(){unset($this->_name);return $this;}function unsetHeight(){unset($this->_height);return $this;}function unsetHSpace(){unset($this->_hSpace);return $this;}function unsetVSpace(){unset($this->_vSpace);return $this;}function unsetCodeBase(){unset($this->_codeBase);return $this;}function asDefault(){$this->setTag('applet');return $this;}function hasProperties(){$this->addProperty('alt');$this->addProperty('code');$this->addProperty('name');$this->addProperty('align');$this->addProperty('width');$this->addProperty('height');$this->addProperty('hSpace');$this->addProperty('vSpace');$this->addProperty('codeBase');return $this;}function fromArguments($code=null,$name=null,$width=null,$height=null,$align=null){$this->setCode($code);$this->setName($name);$this->setAlign($align);$this->setWidth($width);$this->setHeight($height);return $this;}}class HTMLAreaElement extends HTMLElement{function HTMLAreaElement($shape=null,$coords=null,$href=null,$target=null){$this->HTMLElement();HTMLAreaElement::asDefault();HTMLAreaElement::hasBooleans();HTMLAreaElement::hasProperties();HTMLAreaElement::fromArguments($shape,$coords,$href,$target);}var $_alt;var $_href;var $_shape;var $_target;var $_coords;var $_noHref;function setAlt($alt=null){if(isset($alt)){$this->_alt=$alt;}return $this;}function setHref($href=null){if(isset($href)){$this->_href=$href;}return $this;}function setShape($shape=null){if(isset($shape)){$this->_shape=$shape;}return $this;}function setTarget($target=null){if(isset($target)){$this->_target=$target;}return $this;}function setCoords($coords=null){if(isset($coords)){$this->_coords=$coords;}return $this;}function setNoHref($noHref=null){if(isset($noHref)){$this->_noHref=$noHref;}return $this;}function getAlt(){return $this->_alt;}function getHref(){return $this->_href;}function getShape(){return $this->_shape;}function getTarget(){return $this->_target;}function getCoords(){return $this->_coords;}function getNoHref(){return $this->_noHref;}function unsetAlt(){unset($this->_alt);return $this;}function unsetHref(){unset($this->_href);return $this;}function unsetShape(){unset($this->_shape);return $this;}function unsetTarget(){unset($this->_target);return $this;}function unsetCoords(){unset($this->_coords);return $this;}function unsetNoHref(){unset($this->_noHref);return $this;}function asDefault(){$this->setTag('area');return $this;}function hasBooleans(){$this->addBoolean('noHref');return $this;}function hasProperties(){$this->addProperty('alt');$this->addProperty('href');$this->addProperty('shape');$this->addProperty('coords');$this->addProperty('target');return $this;}function fromArguments($shape=null,$coords=null,$href=null,$target=null){$this->setHref($href);$this->setShape($shape);$this->setCoords($coords);$this->setTarget($target);return $this;}}class HTMLBaseElement extends HTMLElement{function HTMLBaseElement($href=null,$target=null){$this->HTMLElement();HTMLBaseElement::asDefault();HTMLBaseElement::hasProperties();HTMLBaseElement::fromArguments($href,$target);}var $_href;var $_target;function setHref($href=null){if(isset($href)){$this->_href=$href;}return $this;}function setTarget($target=null){if(isset($target)){$this->_target=$target;}return $this;}function getHref(){return $this->_href;}function getTarget(){return $this->_target;}function unsetHref(){unset($this->_href);return $this;}function unsetTarget(){unset($this->_target);return $this;}function asDefault(){$this->setTag('base');return $this;}function hasProperties(){$this->addProperty('href');$this->addProperty('target');return $this;}function fromArguments($href=null,$target=null){$this->setHref($href);$this->setTarget($target);return $this;}}class HTMLBaseFontElement extends HTMLElement{function HTMLBaseFontElement($face=null,$size=null,$color=null){$this->HTMLElement();HTMLBaseFontElement::asDefault();HTMLBaseFontElement::hasProperties();HTMLBaseFontElement::fromArguments($face,$size,$color);}var $_size;var $_face;var $_color;function setSize($size=null){if(isset($size)){$this->_size=$size;}return $this;}function setFace($face=null){if(isset($face)){$this->_face=$face;}return $this;}function setColor($color=null){if(isset($color)){$this->_color=$color;}return $this;}function getSize(){return $this->_size;}function getFace(){return $this->_face;}function getColor(){return $this->_color;}function unsetSize(){unset($this->_size);return $this;}function unsetFace(){unset($this->_face);return $this;}function unsetColor(){unset($this->_color);return $this;}function asDefault(){$this->setTag('basefont');return $this;}function hasProperties(){$this->addProperty('face');$this->addProperty('size');$this->addProperty('color');return $this;}function fromArguments($face=null,$size=null,$color=null){$this->setFace($face);$this->setSize($size);$this->setColor($color);return $this;}}class HTMLBlockQuoteElement extends HTMLSingularElement{function HTMLBlockQuoteElement($element=null){$this->HTMLSingularElement();HTMLBlockQuoteElement::asDefault();HTMLBlockQuoteElement::fromArguments($element);}function asDefault(){$this->setTag('blockquote');return $this;}function fromArguments($element=null){$this->setElement($element);return $this;}}class HTMLBodyElement extends HTMLContainerElement{function HTMLBodyElement($bgColor=null,$link=null,$aLink=null,$vLink=null,$text=null){$this->HTMLContainerElement();HTMLBodyElement::asDefault();HTMLBodyElement::hasProperties();HTMLBodyElement::fromArguments($bgColor,$link,$aLink,$vLink,$text);}var $_link;var $_text;var $_vLink;var $_aLink;var $_bgColor;var $_topMargin;var $_leftMargin;var $_background;var $_marginWidth;var $_marginHeight;function setLink($link=null){if(isset($link)){$this->_link=$link;}return $this;}function setText($text=null){if(isset($text)){$this->_text=$text;}return $this;}function setVLink($vLink=null){if(isset($vLink)){$this->_vLink=$vLink;}return $this;}function setALink($aLink=null){if(isset($aLink)){$this->_aLink=$aLink;}return $this;}function setBgColor($bgColor=null){if(isset($bgColor)){$this->_bgColor=$bgColor;}return $this;}function setTopMargin($topMargin=null){if(isset($topMargin)){$this->_topMargin=$topMargin;}return $this;}function setLeftMargin($leftMargin=null){if(isset($leftMargin)){$this->_leftMargin=$leftMargin;}return $this;}function setBackground($background=null){if(isset($background)){$this->_background=$background;}return $this;}function setMarginWidth($marginWidth=null){if(isset($marginWidth)){$this->_marginWidth=$marginWidth;}return $this;}function setMarginHeight($marginHeight=null){if(isset($marginHeight)){$this->_marginHeight=$marginHeight;}return $this;}function getLink(){return $this->_link;}function getText(){return $this->_text;}function getVLink(){return $this->_vLink;}function getALink(){return $this->_aLink;}function getBgColor(){return $this->_bgColor;}function getTopMargin(){return $this->_topMargin;}function getLeftMargin(){return $this->_leftMargin;}function getBackground(){return $this->_background;}function getMarginWidth(){return $this->_marginWidth;}function getMarginHeight(){return $this->_marginHeight;}function unsetLink(){unset($this->_link);return $this;}function unsetText(){unset($this->_text);return $this;}function unsetVLink(){unset($this->_vLink);return $this;}function unsetALink(){unset($this->_aLink);return $this;}function unsetBgColor(){unset($this->_bgColor);return $this;}function unsetTopMargin(){unset($this->_topMargin);return $this;}function unsetLeftMargin(){unset($this->_leftMargin);return $this;}function unsetBackground(){unset($this->_background);return $this;}function unsetMarginWidth(){unset($this->_marginWidth);return $this;}function unsetMarginHeight(){unset($this->_marginHeight);return $this;}function asDefault(){$this->setTag('body');return $this;}function hasProperties(){$this->addProperty('link');$this->addProperty('text');$this->addProperty('vLink');$this->addProperty('aLink');$this->addProperty('bgColor');$this->addProperty('topMargin');$this->addProperty('leftMargin');$this->addProperty('background');$this->addProperty('marginWidth');$this->addProperty('marginHeight');return $this;}function fromArguments($bgColor=null,$link=null,$aLink=null,$vLink=null,$text=null){$this->setText($text);$this->setLink($link);$this->setALink($aLink);$this->setVLink($vLink);$this->setBgColor($bgColor);return $this;}}class HTMLBoldElement extends HTMLSingularElement{function HTMLBoldElement($element=null){$this->HTMLSingularElement();HTMLBoldElement::asDefault();HTMLBoldElement::fromArguments($element);}function asDefault(){$this->setTag('b');return $this;}function fromArguments($element=null){$this->setElement($element);return $this;}}class HTMLBreakElement extends HTMLElement{function HTMLBreakElement($clear=null){$this->HTMLElement();HTMLBreakElement::asDefault();HTMLBreakElement::hasProperties();HTMLBreakElement::fromArguments($clear);}var $_clear;function setClear($clear=null){if(isset($clear)){$this->_clear=$clear;}return $this;}function getClear(){return $this->_clear;}function unsetClear(){unset($this->_clear);return $this;}function asDefault(){$this->setTag('br');return $this;}function hasProperties(){$this->addProperty('clear');return $this;}function fromArguments($clear=null){$this->setClear($clear);return $this;}}class HTMLDivElement extends HTMLContainerElement{function HTMLDivElement($align=null){$this->HTMLContainerElement();HTMLDivElement::asDefault();HTMLDivElement::hasProperties();HTMLDivElement::fromArguments($align);}var $_align;function setAlign($align=null){if(isset($align)){$this->_align=$align;}return $this;}function getAlign(){return $this->_align;}function unsetAlign(){unset($this->_align);return $this;}function asDefault(){$this->setTag('div');return $this;}function hasProperties(){$this->addProperty('align');return $this;}function fromArguments($align=null){$this->setAlign($align);return $this;}}class HTMLEmbedElement extends HTMLSingularElement{function HTMLEmbedElement($src=null,$width=null,$height=null,$name=null){$this->HTMLSingularElement();HTMLEmbedElement::asDefault();HTMLEmbedElement::hasBooleans();HTMLEmbedElement::hasProperties();HTMLEmbedElement::fromArguments($src,$width,$height,$name);}var $_alt;var $_src;var $_align;var $_width;var $_name;var $_height;var $_hidden;var $_palette;var $_hSpace;var $_vSpace;function setAlt($alt=null){if(isset($alt)){$this->_alt=$alt;}return $this;}function setSrc($src=null){if(isset($src)){$this->_src=$src;}return $this;}function setAlign($align=null){if(isset($align)){$this->_align=$align;}return $this;}function setName($name=null){if(isset($name)){$this->_name=$name;}return $this;}function setWidth($width=null){if(isset($width)){$this->_width=$width;}return $this;}function setHeight($height=null){if(isset($height)){$this->_height=$height;}return $this;}function setHidden($hidden=null){if(isset($hidden)){$this->_hidden=$hidden;}return $this;}function setPalette($palette=null){if(isset($palette)){$this->_palette=$palette;}return $this;}function setHSpace($hSpace=null){if(isset($hSpace)){$this->_hSpace=$hSpace;}return $this;}function setVSpace($vSpace=null){if(isset($vSpace)){$this->_vSpace=$vSpace;}return $this;}function getAlt(){return $this->_alt;}function getSrc(){return $this->_src;}function getAlign(){return $this->_align;}function getName(){return $this->_name;}function getWidth(){return $this->_width;}function getHeight(){return $this->_height;}function getHidden(){return $this->_hidden;}function getPalette(){return $this->_palette;}function getHSpace(){return $this->_hSpace;}function getVSpace(){return $this->_vSpace;}function unsetAlt(){unset($this->_alt);return $this;}function unsetSrc(){unset($this->_src);return $this;}function unsetAlign(){unset($this->_align);return $this;}function unsetName(){unset($this->_name);return $this;}function unsetWidth(){unset($this->_width);return $this;}function unsetHeight(){unset($this->_height);return $this;}function unsetHidden(){unset($this->_hidden);return $this;}function unsetPalette(){unset($this->_palette);return $this;}function unsetHSpace(){unset($this->_hSpace);return $this;}function unsetVSpace(){unset($this->_vSpace);return $this;}function asDefault(){$this->setTag('embed');return $this;}function hasBooleans(){$this->addBoolean('hidden');return $this;}function hasProperties(){$this->addProperty('alt');$this->addProperty('src');$this->addProperty('name');$this->addProperty('align');$this->addProperty('width');$this->addProperty('height');$this->addProperty('hSpace');$this->addProperty('vSpace');$this->addProperty('palette');return $this;}function fromArguments($src=null,$width=null,$height=null,$name=null){$this->setSrc($src);$this->setName($name);$this->setWidth($width);$this->setHeight($height);return $this;}}class HTMLFontElement extends HTMLContainerElement{function HTMLFontElement($face=null,$size=null,$color=null){$this->HTMLContainerElement();HTMLFontElement::asDefault();HTMLFontElement::hasProperties();HTMLFontElement::fromArguments($face,$size,$color);}var $_size;var $_face;var $_color;function setSize($size=null){if(isset($size)){$this->_size=$size;}return $this;}function setFace($face=null){if(isset($face)){$this->_face=$face;}return $this;}function setColor($color=null){if(isset($color)){$this->_color=$color;}return $this;}function getSize(){return $this->_size;}function getFace(){return $this->_face;}function getColor(){return $this->_color;}function unsetSize(){unset($this->_size);return $this;}function unsetFace(){unset($this->_face);return $this;}function unsetColor(){unset($this->_color);return $this;}function asDefault(){$this->setTag('font');return $this;}function hasProperties(){$this->addProperty('size');$this->addProperty('face');$this->addProperty('color');return $this;}function fromArguments($face=null,$size=null,$color=null){$this->setSize($size);$this->setFace($face);$this->setColor($color);return $this;}}class HTMLFormElement extends HTMLContainerElement{function HTMLFormElement($action=null,$method=null,$encType=null,$target=null){$this->HTMLContainerElement();HTMLFormElement::asDefault();HTMLFormElement::hasProperties();HTMLFormElement::fromArguments($action,$method,$encType,$target);}var $_name;var $_action;var $_target;var $_method;var $_encType;function setName($name=null){if(isset($name)){$this->_name=$name;}return $this;}function setAction($action=null){if(isset($action)){$this->_action=$action;}return $this;}function setTarget($target=null){if(isset($target)){$this->_target=$target;}return $this;}function setMethod($method=null){if(isset($method)){$this->_method=$method;}return $this;}function setEncType($encType=null){if(isset($encType)){$this->_encType=$encType;}return $this;}function getName(){return $this->_name;}function getAction(){return $this->_action;}function getTarget(){return $this->_target;}function getMethod(){return $this->_method;}function getEncType(){return $this->_encType;}function unsetName(){unset($this->_name);return $this;}function unsetAction(){unset($this->_action);return $this;}function unsetTarget(){unset($this->_target);return $this;}function unsetMethod(){unset($this->_method);return $this;}function unsetEncType(){unset($this->_encType);return $this;}function asDefault(){$this->setTag('form');return $this;}function hasProperties(){$this->addProperty('name');$this->addProperty('action');$this->addProperty('target');$this->addProperty('method');$this->addProperty('encType');return $this;}function fromArguments($action=null,$method=null,$encType=null,$target=null){$this->setAction($action);$this->setMethod($method);$this->setTarget($target);$this->setEncType($encType);return $this;}}class HTMLFrameElement extends HTMLElement{function HTMLFrameElement($name=null,$src=null,$scrolling=null,$noResize=null){$this->HTMLElement();HTMLFrameElement::asDefault();HTMLFrameElement::hasBooleans();HTMLFrameElement::hasProperties();HTMLFrameElement::fromArguments($name,$src,$scrolling,$noResize);}var $_src;var $_name;var $_scrolling;var $_noResize;var $_borderColor;var $_frameBorder;var $_marginWidth;var $_marginHeight;function setSrc($src=null){if(isset($src)){$this->_src=$src;}return $this;}function setName($name=null){if(isset($name)){$this->_name=$name;}return $this;}function setScrolling($scrolling=null){if(isset($scrolling)){$this->_scrolling=$scrolling;}return $this;}function setNoResize($noResize=null){if(isset($noResize)){$this->_noResize=$noResize;}return $this;}function setBorderColor($borderColor=null){if(isset($borderColor)){$this->_borderColor=$borderColor;}return $this;}function setMarginWidth($marginWidth=null){if(isset($marginWidth)){$this->_marginWidth=$marginWidth;}return $this;}function setFrameBorder($frameBorder=null){if(isset($frameBorder)){$this->_frameBorder=$frameBorder;}return $this;}function setMarginHeight($marginHeight=null){if(isset($marginHeight)){$this->_marginHeight=$marginHeight;}return $this;}function getSrc(){return $this->_src;}function getName(){return $this->_name;}function getScrolling(){return $this->_scrolling;}function getNoResize(){return $this->_noResize;}function getBorderColor(){return $this->_borderColor;}function getMarginWidth(){return $this->_marginWidth;}function getFrameBorder(){return $this->_frameBorder;}function getMarginHeight(){return $this->_marginHeight;}function unsetSrc(){unset($this->_src);return $this;}function unsetName(){unset($this->_name);return $this;}function unsetScrolling(){unset($this->_scrolling);return $this;}function unsetNoResize(){unset($this->_noResize);return $this;}function unsetBorderColor(){unset($this->_borderColor);return $this;}function unsetMarginWidth(){unset($this->_marginWidth);return $this;}function unsetFrameBorder(){unset($this->_frameBorder);return $this;}function unsetMarginHeight(){unset($this->_marginHeight);return $this;}function asDefault(){$this->setTag('frame');return $this;}function hasBooleans(){$this->addBoolean('noResize');return $this;}function hasProperties(){$this->addProperty('src');$this->addProperty('name');$this->addProperty('scrolling');$this->addProperty('frameBorder');$this->addProperty('borderColor');$this->addProperty('marginWidth');$this->addProperty('marginHeight');return $this;}function fromArguments($name=null,$src=null,$scrolling=null,$noResize=null){$this->setSrc($src);$this->setName($name);$this->setNoResize($noResize);$this->setScrolling($scrolling);return $this;}}class HTMLFrameSetElement extends HTMLContainerElement{function HTMLFrameSetElement($cols=null,$rows=null,$border=null,$frameBorder=null,$frameSpacing=null){$this->HTMLContainerElement();HTMLFrameSetElement::asDefault();HTMLFrameSetElement::hasProperties();HTMLFrameSetElement::fromArguments($cols,$rows,$border,$frameBorder,$frameSpacing);}var $_cols;var $_rows;var $_border;var $_borderColor;var $_frameBorder;var $_frameSpacing;function setCols($cols=null){if(isset($cols)){$this->_cols=$cols;}return $this;}function setRows($rows=null){if(isset($rows)){$this->_rows=$rows;}return $this;}function setBorder($border=null){if(isset($border)){$this->_border=$border;}return $this;}function setBorderColor($borderColor=null){if(isset($borderColor)){$this->_borderColor=$borderColor;}return $this;}function setFrameBorder($frameBorder=null){if(isset($frameBorder)){$this->_frameBorder=$frameBorder;}return $this;}function setFrameSpacing($frameSpacing=null){if(isset($frameSpacing)){$this->_frameSpacing=$frameSpacing;}return $this;}function getCols(){return $this->_cols;}function getRows(){return $this->_rows;}function getBorder(){return $this->_border;}function getBorderColor(){return $this->_borderColor;}function getFrameBorder(){return $this->_frameBorder;}function getFrameSpacing(){return $this->_frameSpacing;}function unsetCols(){unset($this->_cols);return $this;}function unsetRows(){unset($this->_rows);return $this;}function unsetBorder(){unset($this->_border);return $this;}function unsetBorderColor(){unset($this->_borderColor);return $this;}function unsetFrameBorder(){unset($this->_frameBorder);return $this;}function unsetFrameSpacing(){unset($this->_frameSpacing);return $this;}function asDefault(){$this->setTag('frameset');return $this;}function hasProperties(){$this->addProperty('cols');$this->addProperty('rows');$this->addProperty('border');$this->addProperty('borderColor');$this->addProperty('frameBorder');$this->addProperty('frameSpacing');return $this;}function fromArguments($cols=null,$rows=null,$border=null,$frameBorder=null,$frameSpacing=null){$this->setCols($cols);$this->setRows($rows);$this->setBorder($border);$this->setFrameBorder($frameBorder);$this->setFrameSpacing($frameSpacing);return $this;}}class HTMLHeadElement extends HTMLContainerElement{function HTMLHeadElement($title=null){$this->HTMLContainerElement();HTMLHeadElement::asDefault();HTMLHeadElement::fromArguments($title);}function asDefault(){$this->setTag('head');return $this;}function fromArguments($title=null){$this->addElement((isset($title)?new HTMLTitleElement($title):null));return $this;}}class HTMLHeadingElement extends HTMLSingularElement{function draw(){return "<h".$this->getLevel().$this->drawEvents().$this->drawBooleans().$this->drawProperties().">".$this->drawElement()."</h".$this->getLevel().">";}function HTMLHeadingElement($level=null,$text=null,$align=null){$this->HTMLSingularElement();HTMLHeadingElement::asDefault();HTMLHeadingElement::hasProperties();HTMLHeadingElement::fromArguments($level,$text,$align);}var $_align;var $_level;function setAlign($align=null){if(isset($align)){$this->_align=$align;}return $this;}function setLevel($level=null){if(is_integer($level)&&$level>0&&$level<7){$this->_level=$level;}return $this;}function getAlign(){return $this->_align;}function getLevel(){return $this->_level;}function unsetAlign(){unset($this->_align);return $this;}function unsetLevel(){unset($this->_level);return $this;}function asDefault(){$this->setLevel(1);return $this;}function hasProperties(){$this->addProperty('align');return $this;}function fromArguments($level=null,$text=null,$align=null){$this->setLevel($level);$this->setAlign($align);$this->setElement($text);return $this;}}class HTMLHorizontalRuleElement extends HTMLElement{function HTMLHorizontalRuleElement($size=null,$width=null,$align=null,$noShade=null){$this->HTMLElement();HTMLHorizontalRuleElement::asDefault();HTMLHorizontalRuleElement::hasBooleans();HTMLHorizontalRuleElement::hasProperties();HTMLHorizontalRuleElement::fromArguments($size,$width,$align,$noShade);}var $_size;var $_align;var $_width;var $_noShade;function setSize($size=null){if(isset($size)){$this->_size=$size;}return $this;}function setAlign($align=null){if(isset($align)){$this->_align=$align;}return $this;}function setWidth($width=null){if(isset($width)){$this->_width=$width;}return $this;}function setNoShade($noShade=null){if(isset($noShade)){$this->_noShade=$noShade;}return $this;}function getSize(){return $this->_size;}function getAlign(){return $this->_align;}function getWidth(){return $this->_width;}function getNoShade(){return $this->_noShade;}function unsetSize(){unset($this->_size);return $this;}function unsetAlign(){unset($this->_align);return $this;}function unsetWidth(){unset($this->_width);return $this;}function unsetNoShade(){unset($this->_noShade);return $this;}function asDefault(){$this->setTag('hr');return $this;}function hasBooleans(){$this->addBoolean('noShade');return $this;}function hasProperties(){$this->addProperty('size');$this->addProperty('align');$this->addProperty('width');return $this;}function fromArguments($size=null,$width=null,$align=null,$noShade=null){$this->setSize($size);$this->setAlign($align);$this->setWidth($width);$this->setNoShade($noShade);return $this;}}class HTMLHyperLinkElement extends HTMLAnchorElement{function HTMLHyperLinkElement($href=null,$element=null,$target=null){$this->HTMLAnchorElement();HTMLHyperLinkElement::fromArguments($href,$element,$target);}function fromArguments($href=null,$element=null,$target=null){$this->setHref($href);$this->setTarget($target);$this->setElement($element);return $this;}}class HTMLImageElement extends HTMLElement{function HTMLImageElement($src=null,$width=null,$height=null,$alt=null,$border=null,$align=null){$this->HTMLElement();HTMLImageElement::asDefault();HTMLImageElement::hasBooleans();HTMLImageElement::hasProperties();HTMLImageElement::fromArguments($src,$width,$height,$alt,$border,$align);}var $_alt;var $_src;var $_align;var $_name;var $_width;var $_isMap;var $_height;var $_lowSrc;var $_border;var $_hSpace;var $_vSpace;var $_useMap;function setAlt($alt=null){if(isset($alt)){$this->_alt=$alt;}return $this;}function setSrc($src=null){if(isset($src)){$this->_src=$src;}return $this;}function setAlign($align=null){if(isset($align)){$this->_align=$align;}return $this;}function setName($name=null){if(isset($name)){$this->_name=$name;}return $this;}function setWidth($width=null){if(isset($width)){$this->_width=$width;}return $this;}function setIsMap($isMap=null){if(isset($isMap)){$this->_isMap=$isMap;}return $this;}function setHeight($height=null){if(isset($height)){$this->_height=$height;}return $this;}function setLowSrc($lowSrc=null){if(isset($lowSrc)){$this->_lowSrc=$lowSrc;}return $this;}function setBorder($border=null){if(isset($border)){$this->_border=$border;}return $this;}function setHSpace($hSpace=null){if(isset($hSpace)){$this->_hSpace=$hSpace;}return $this;}function setVSpace($vSpace=null){if(isset($vSpace)){$this->_vSpace=$vSpace;}return $this;}function setUseMap($useMap=null){if(isset($useMap)){$this->_useMap=$useMap;}return $this;}function getAlt(){return $this->_alt;}function getSrc(){return $this->_src;}function getAlign(){return $this->_align;}function getName(){return $this->_name;}function getWidth(){return $this->_width;}function getIsMap(){return $this->_isMap;}function getHeight(){return $this->_height;}function getLowSrc(){return $this->_lowSrc;}function getBorder(){return $this->_border;}function getHSpace(){return $this->_hSpace;}function getVSpace(){return $this->_vSpace;}function getUseMap(){return $this->_useMap;}function unsetAlt(){unset($this->_alt);return $this;}function unsetSrc(){unset($this->_src);return $this;}function unsetAlign(){unset($this->_align);return $this;}function unsetName(){unset($this->_name);return $this;}function unsetWidth(){unset($this->_width);return $this;}function unsetIsMap(){unset($this->_isMap);return $this;}function unsetHeight(){unset($this->_height);return $this;}function unsetLowSrc(){unset($this->_lowSrc);return $this;}function unsetBorder(){unset($this->_border);return $this;}function unsetHSpace(){unset($this->_hSpace);return $this;}function unsetVSpace(){unset($this->_vSpace);return $this;}function unsetUseMap(){unset($this->_useMap);return $this;}function asDefault(){$this->setTag('img');return $this;}function hasBooleans(){$this->addBoolean('isMap');return $this;}function hasProperties(){$this->addProperty('alt');$this->addProperty('src');$this->addProperty('name');$this->addProperty('align');$this->addProperty('width');$this->addProperty('height');$this->addProperty('border');$this->addProperty('hSpace');$this->addProperty('vSpace');$this->addProperty('lowSrc');$this->addProperty('useMap');return $this;}function fromArguments($src=null,$width=null,$height=null,$alt=null,$border=null,$align=null){$this->setAlt($alt);$this->setSrc($src);$this->setAlign($align);$this->setWidth($width);$this->setHeight($height);$this->setBorder($border);return $this;}}class HTMLInputElement extends HTMLElement{function HTMLInputElement($type=null,$name=null,$value=null){$this->HTMLElement();HTMLInputElement::asDefault();HTMLInputElement::hasBooleans();HTMLInputElement::hasProperties();HTMLInputElement::fromArguments($type,$name,$value);}var $_alt;var $_src;var $_size;var $_type;var $_align;var $_width;var $_value;var $_name;var $_height;var $_border;var $_checked;var $_disabled;var $_readOnly;var $_tabIndex;var $_maxLength;function setAlt($alt=null){if(isset($alt)){$this->_alt=$alt;}return $this;}function setSrc($src=null){if(isset($src)){$this->_src=$src;}return $this;}function setSize($size=null){if(isset($size)){$this->_size=$size;}return $this;}function setType($type=null){if(isset($type)){$this->_type=$type;}return $this;}function setAlign($align=null){if(isset($align)){$this->_align=$align;}return $this;}function setValue($value=null){if(isset($value)){$this->_value=$value;}return $this;}function setName($name=null){if(isset($name)){$this->_name=$name;}return $this;}function setWidth($width=null){if(isset($width)){$this->_width=$width;}return $this;}function setHeight($height=null){if(isset($height)){$this->_height=$height;}return $this;}function setBorder($border=null){if(isset($border)){$this->_border=$border;}return $this;}function setDisabled($disabled=null){if(isset($disabled)){$this->_disabled=$disabled;}return $this;}function setChecked($checked=null){if(isset($checked)){$this->_checked=$checked;}return $this;}function setReadOnly($readOnly=null){if(isset($readOnly)){$this->_readOnly=$readOnly;}return $this;}function setTabIndex($tabIndex=null){if(isset($tabIndex)){$this->_tabIndex=$tabIndex;}return $this;}function setMaxLength($maxLength=null){if(isset($maxLength)){$this->_maxLength=$maxLength;}return $this;}function getAlt(){return $this->_alt;}function getSrc(){return $this->_src;}function getSize(){return $this->_size;}function getType(){return $this->_type;}function getAlign(){return $this->_align;}function getValue(){return $this->_value;}function getName(){return $this->_name;}function getWidth(){return $this->_width;}function getHeight(){return $this->_height;}function getBorder(){return $this->_border;}function getDisabled(){return $this->_disabled;}function getChecked(){return $this->_checked;}function getReadOnly(){return $this->_readOnly;}function getTabIndex(){return $this->_tabIndex;}function getMaxLength(){return $this->_maxLength;}function unsetAlt(){unset($this->_alt);return $this;}function unsetSrc(){unset($this->_src);return $this;}function unsetSize(){unset($this->_size);return $this;}function unsetType(){unset($this->_type);return $this;}function unsetAlign(){unset($this->_align);return $this;}function unsetValue(){unset($this->_value);return $this;}function unsetName(){unset($this->_name);return $this;}function unsetWidth(){unset($this->_width);return $this;}function unsetHeight(){unset($this->_height);return $this;}function unsetBorder(){unset($this->_border);return $this;}function unsetDisabled(){unset($this->_disabled);return $this;}function unsetChecked(){unset($this->_checked);return $this;}function unsetReadOnly(){unset($this->_readOnly);return $this;}function unsetTabIndex(){unset($this->_tabIndex);return $this;}function unsetMaxLength(){unset($this->_maxLength);return $this;}function asDefault(){$this->setTag('input');return $this;}function hasBooleans(){$this->addBoolean('checked');$this->addBoolean('disabled');$this->addBoolean('readOnly');return $this;}function hasProperties(){$this->addProperty('alt');$this->addProperty('src');$this->addProperty('name');$this->addProperty('type');$this->addProperty('size');$this->addProperty('align');$this->addProperty('width');$this->addProperty('value');$this->addProperty('border');$this->addProperty('height');$this->addProperty('tabIndex');$this->addProperty('maxLength');return $this;}function fromArguments($type=null,$name=null,$value=null){$this->setType($type);$this->setName($name);$this->setValue($value);return $this;}}class HTMLItalicElement extends HTMLSingularElement{function HTMLItalicElement($element=null){$this->HTMLSingularElement();HTMLItalicElement::asDefault();HTMLItalicElement::fromArguments($element);}function asDefault(){$this->setTag('i');return $this;}function fromArguments($element=null){$this->setElement($element);return $this;}}class HTMLLinkElement extends HTMLElement{function HTMLLinkElement($rel=null,$type=null,$href=null,$src=null){$this->HTMLElement();HTMLLinkElement::asDefault();HTMLLinkElement::hasProperties();HTMLLinkElement::fromArguments($rel,$type,$href,$src);}var $_rel;var $_src;var $_href;var $_type;function setSrc($src=null){if(isset($src)){$this->_src=$src;}return $this;}function setRel($rel=null){if(isset($rel)){$this->_rel=$rel;}return $this;}function setHref($href=null){if(isset($href)){$this->_href=$href;}return $this;}function setType($type=null){if(isset($type)){$this->_type=$type;}return $this;}function getSrc(){return $this->_src;}function getRel(){return $this->_rel;}function getHref(){return $this->_href;}function getType(){return $this->_type;}function unsetSrc(){unset($this->_src);return $this;}function unsetRel(){unset($this->_rel);return $this;}function unsetHref(){unset($this->_href);return $this;}function unsetType(){unset($this->_type);return $this;}function asDefault(){$this->setTag('link');return $this;}function hasProperties(){$this->addProperty('rel');$this->addProperty('src');$this->addProperty('href');$this->addProperty('type');return $this;}function fromArguments($rel=null,$type=null,$href=null,$src=null){$this->setSrc($src);$this->setRel($rel);$this->setHref($href);$this->setType($type);return $this;}}class HTMLListItemElement extends HTMLSingularElement{function HTMLListItemElement($element=null,$type=null){$this->HTMLSingularElement();HTMLListItemElement::asDefault();HTMLListItemElement::hasProperties();HTMLListItemElement::fromArguments($element,$type);}var $_type;function setType($type=null){if(isset($type)){$this->_type=$type;}return $this;}function getType(){return $this->_type;}function unsetType(){unset($this->_type);return $this;}function asDefault(){$this->setTag('li');return $this;}function hasProperties(){$this->addProperty('type');return $this;}function fromArguments($element=null,$type=null){$this->setType($type);$this->setElement($element);return $this;}}class HTMLMapElement extends HTMLContainerElement{function HTMLMapElement($name=null){$this->HTMLContainerElement();HTMLMapElement::asDefault();HTMLMapElement::hasProperties();HTMLMapElement::fromArguments($name);}var $_name;function setName($name=null){if(isset($name)){$this->_name=$name;}return $this;}function getName(){return $this->_name;}function unsetName(){unset($this->_name);return $this;}function asDefault(){$this->setTag('map');return $this;}function hasProperties(){$this->addProperty('name');return $this;}function fromArguments($name=null){$this->setName($name);return $this;}}class HTMLMetaElement extends HTMLElement{function HTMLMetaElement($name=null,$content=null,$httpEquiv=null){$this->HTMLElement();HTMLMetaElement::asDefault();HTMLMetaElement::hasProperties();HTMLMetaElement::fromArguments($name,$content,$httpEquiv);}var $_name;var $_content;var $_httpEquiv;function setName($name=null){if(isset($name)){$this->_name=$name;}return $this;}function setContent($content=null){if(isset($content)){$this->_content=$content;}return $this;}function setHttpEquiv($httpEquiv=null){if(isset($httpEquiv)){$this->_httpEquiv=$httpEquiv;}return $this;}function getName(){return $this->_name;}function getContent(){return $this->_content;}function getHttpEquiv(){return $this->_httpEquiv;}function unsetName(){unset($this->_name);return $this;}function unsetContent(){unset($this->_content);return $this;}function unsetHttpEquiv(){unset($this->_httpEquiv);return $this;}function asDefault(){$this->setTag('meta');return $this;}function hasProperties(){$this->addProperty('name');$this->addProperty('content');$this->addProperty('httpEquiv','http-equiv');return $this;}function fromArguments($name=null,$content=null,$httpEquiv=null){$this->setName($name);$this->setContent($content);$this->setHttpEquiv($httpEquiv);return $this;}}class HTMLObjectElement extends HTMLContainerElement{function HTMLObjectElement($codeBase=null,$classId=null,$width=null,$height=null){$this->HTMLContainerElement();HTMLObjectElement::asDefault();HTMLObjectElement::hasProperties();HTMLObjectElement::fromArguments($codeBase,$classId,$width,$height);}var $_data;var $_type;var $_align;var $_width;var $_height;var $_classId;var $_hSpace;var $_vSpace;var $_codeBase;function setData($data=null){if(isset($data)){$this->_data=$data;}return $this;}function setType($type=null){if(isset($type)){$this->_type=$type;}return $this;}function setAlign($align=null){if(isset($align)){$this->_align=$align;}return $this;}function setWidth($width=null){if(isset($width)){$this->_width=$width;}return $this;}function setHeight($height=null){if(isset($height)){$this->_height=$height;}return $this;}function setClassId($classId=null){if(isset($classId)){$this->_classId=$classId;}return $this;}function setHSpace($hSpace=null){if(isset($hSpace)){$this->_hSpace=$hSpace;}return $this;}function setVSpace($vSpace=null){if(isset($vSpace)){$this->_vSpace=$vSpace;}return $this;}function setCodeBase($codeBase=null){if(isset($codeBase)){$this->_codeBase=$codeBase;}return $this;}function getData(){return $this->_data;}function getType(){return $this->_type;}function getAlign(){return $this->_align;}function getWidth(){return $this->_width;}function getHeight(){return $this->_height;}function getClassId(){return $this->_classId;}function getHSpace(){return $this->_hSpace;}function getVSpace(){return $this->_vSpace;}function getCodeBase(){return $this->_codeBase;}function unsetData(){unset($this->_data);return $this;}function unsetType(){unset($this->_type);return $this;}function unsetAlign(){unset($this->_align);return $this;}function unsetWidth(){unset($this->_width);return $this;}function unsetHeight(){unset($this->_height);return $this;}function unsetClassId(){unset($this->_classId);return $this;}function unsetHSpace(){unset($this->_hSpace);return $this;}function unsetVSpace(){unset($this->_vSpace);return $this;}function unsetCodeBase(){unset($this->_codeBase);return $this;}function asDefault(){$this->setTag('object');return $this;}function hasProperties(){$this->addProperty('data');$this->addProperty('type');$this->addProperty('align');$this->addProperty('width');$this->addProperty('height');$this->addProperty('hSpace');$this->addProperty('vSpace');$this->addProperty('classId');$this->addProperty('codeBase');return $this;}function fromArguments($codeBase=null,$classId=null,$width=null,$height=null){$this->setWidth($width);$this->setHeight($height);$this->setClassId($classId);$this->setCodeBase($codeBase);return $this;}}class HTMLOptionElement extends HTMLSingularElement{function HTMLOptionElement($value=null,$text=null,$selected=null){$this->HTMLSingularElement();HTMLOptionElement::asDefault();HTMLOptionElement::hasBooleans();HTMLOptionElement::hasProperties();HTMLOptionElement::fromArguments($value,$text,$selected);}var $_value;var $_selected;function setValue($value=null){if(isset($value)){$this->_value=$value;}return $this;}function setSelected($selected=null){if(isset($selected)){$this->_selected=$selected;}return $this;}function getValue(){return $this->_value;}function getSelected(){return $this->_selected;}function unsetValue(){unset($this->_value);return $this;}function unsetSelected(){unset($this->_selected);return $this;}function asDefault(){$this->setTag('option');return $this;}function hasBooleans(){$this->addBoolean('selected');return $this;}function hasProperties(){$this->addProperty('value');return $this;}function fromArguments($value=null,$text=null,$selected=null){$this->setValue($value);$this->setElement($text);$this->setSelected($selected);return $this;}}class HTMLOrderedListElement extends HTMLUnorderedListElement{function HTMLOrderedListElement($type=null,$start=null,$compact=null){$this->HTMLUnorderedListElement();HTMLOrderedListElement::asDefault();HTMLOrderedListElement::hasProperties();HTMLOrderedListElement::fromArguments($type,$start,$compact);}var $_start;function setStart($start=null){if(isset($start)){$this->_start=$start;}return $this;}function getStart(){return $this->_start;}function unsetStart(){unset($this->_start);return $this;}function asDefault(){$this->setTag('ol');return $this;}function hasProperties(){$this->addProperty('start');return $this;}function fromArguments($type=null,$start=null,$compact=null){$this->setType($type);$this->setStart($start);$this->setCompact($compact);return $this;}}class HTMLParagraphElement extends HTMLDivElement{function HTMLParagraphElement($align=null){$this->HTMLDivElement();HTMLParagraphElement::asDefault();HTMLParagraphElement::fromArguments($align);}function asDefault(){$this->setTag('p');return $this;}function fromArguments($align=null){$this->setAlign($align);return $this;}}class HTMLParamElement extends HTMLElement{function HTMLParamElement($name=null,$value=null){$this->HTMLElement();HTMLParamElement::asDefault();HTMLParamElement::hasProperties();HTMLParamElement::fromArguments($name,$value);}var $_value;var $_name;function setValue($value=null){if(isset($value)){$this->_value=$value;}return $this;}function setName($name=null){if(isset($name)){$this->_name=$name;}return $this;}function getValue(){return $this->_value;}function getName(){return $this->_name;}function unsetValue(){unset($this->_value);return $this;}function unsetName(){unset($this->_name);return $this;}function asDefault(){$this->setTag('param');return $this;}function hasProperties(){$this->addProperty('name');$this->addProperty('value');return $this;}function fromArguments($name=null,$value=null){$this->setName($name);$this->setValue($value);return $this;}}class HTMLPreformattedTextElement extends HTMLSingularElement{function HTMLPreformattedTextElement($element=null){$this->HTMLSingularElement();HTMLPreformattedTextElement::asDefault();HTMLPreformattedTextElement::fromArguments($element);}function asDefault(){$this->setTag('pre');return $this;}function fromArguments($element=null){$this->setElement($element);return $this;}}class HTMLScriptElement extends HTMLSingularElement{function HTMLScriptElement($src=null,$language=null,$type=null){$this->HTMLSingularElement();HTMLScriptElement::asDefault();HTMLScriptElement::hasBooleans();HTMLScriptElement::hasProperties();HTMLScriptElement::fromArguments($src,$language,$type);}var $_src;var $_type;var $_defer;var $_event;var $_language;var $_forElement;function setSrc($src=null){if(isset($src)){$this->_src=$src;}return $this;}function setType($type=null){if(isset($type)){$this->_type=$type;}return $this;}function setDefer($defer=null){if(isset($defer)){$this->_defer=$defer;}return $this;}function setEvent($event=null){if(isset($event)){$this->_event=$event;}return $this;}function setLanguage($language=null){if(isset($language)){$this->_language=$language;}return $this;}function setForElement($forElement=null){if(isset($forElement)){$this->_forElement=$forElement;}return $this;}function getSrc(){return $this->_src;}function getType(){return $this->_type;}function getDefer(){return $this->_defer;}function getEvent(){return $this->_event;}function getLanguage(){return $this->_language;}function getForElement(){return $this->_forElement;}function unsetSrc(){unset($this->_src);return $this;}function unsetType(){unset($this->_type);return $this;}function unsetDefer(){unset($this->_defer);return $this;}function unsetEvent(){unset($this->_event);return $this;}function unsetLanguage(){unset($this->_language);return $this;}function unsetForElement(){unset($this->_forElement);return $this;}function asDefault(){$this->setTag('script');$this->setLanguage('JavaScript');return $this;}function hasBooleans(){$this->addBoolean('defer');return $this;}function hasProperties(){$this->addProperty('src');$this->addProperty('type');$this->addProperty('event');$this->addProperty('language');$this->addProperty('forElement','for');return $this;}function fromArguments($src=null,$language=null,$type=null){$this->setSrc($src);$this->setType($type);$this->setLanguage($language);return $this;}}class HTMLSelectElement extends HTMLContainerElement{function HTMLSelectElement($name=null,$size=null,$multiple=null){$this->HTMLContainerElement();HTMLSelectElement::asDefault();HTMLSelectElement::hasBooleans();HTMLSelectElement::hasProperties();HTMLSelectElement::fromArguments($name,$size,$multiple);}var $_size;var $_align;var $_name;var $_multiple;var $_disabled;var $_tabIndex;function setSize($size=null){if(isset($size)){$this->_size=$size;}return $this;}function setAlign($align=null){if(isset($align)){$this->_align=$align;}return $this;}function setName($name=null){if(isset($name)){$this->_name=$name;}return $this;}function setMultiple($multiple=null){if(isset($multiple)){$this->_multiple=$multiple;}return $this;}function setDisabled($disabled=null){if(isset($disabled)){$this->_disabled=$disabled;}return $this;}function setTabIndex($tabIndex=null){if(isset($tabIndex)){$this->_tabIndex=$tabIndex;}return $this;}function getSize(){return $this->_size;}function getAlign(){return $this->_align;}function getName(){return $this->_name;}function getMultiple(){return $this->_multiple;}function getDisabled(){return $this->_disabled;}function getTabIndex(){return $this->_tabIndex;}function unsetSize(){unset($this->_size);return $this;}function unsetAlign(){unset($this->_align);return $this;}function unsetName(){unset($this->_name);return $this;}function unsetMultiple(){unset($this->_multiple);return $this;}function unsetDisabled(){unset($this->_disabled);return $this;}function unsetTabIndex(){unset($this->_tabIndex);return $this;}function asDefault(){$this->setTag('select');return $this;}function hasBooleans(){$this->addBoolean('multiple');$this->addBoolean('disabled');return $this;}function hasProperties(){$this->addProperty('name');$this->addProperty('size');$this->addProperty('align');$this->addProperty('tabIndex');return $this;}function fromArguments($name=null,$size=null,$multiple=null){$this->setName($name);$this->setSize($size);$this->setMultiple($multiple);return $this;}}class HTMLSpanElement extends HTMLContainerElement{function HTMLSpanElement(){$this->HTMLContainerElement();HTMLSpanElement::asDefault();}function asDefault(){$this->setTag('span');return $this;}}class HTMLStrikeElement extends HTMLSingularElement{function HTMLStrikeElement($element=null){$this->HTMLSingularElement();HTMLStrikeElement::asDefault();HTMLStrikeElement::fromArguments($element);}function asDefault(){$this->setTag('s');return $this;}function fromArguments($element=null){$this->setElement($element);return $this;}}class HTMLSubscriptElement extends HTMLSingularElement{function HTMLSubscriptElement($element=null){$this->HTMLSingularElement();HTMLSubscriptElement::asDefault();HTMLSubscriptElement::fromArguments($element);}function asDefault(){$this->setTag('sub');return $this;}function fromArguments($element=null){$this->setElement($element);return $this;}}class HTMLSuperscriptElement extends HTMLSingularElement{function HTMLSuperscriptElement($element=null){$this->HTMLSingularElement();HTMLSuperscriptElement::asDefault();HTMLSuperscriptElement::fromArguments($element);}function asDefault(){$this->setTag('sup');return $this;}function fromArguments($element=null){$this->setElement($element);return $this;}}class HTMLTableElement extends HTMLContainerElement{function HTMLTableElement($width=null,$height=null,$cellPadding=null,$cellSpacing=null,$border=null){$this->HTMLContainerElement();HTMLTableElement::asDefault();HTMLTableElement::hasProperties();HTMLTableElement::fromArguments($width,$height,$cellPadding,$cellSpacing,$border);}var $_align;var $_width;var $_height;var $_border;var $_bgColor;var $_cellSpacing;var $_cellPadding;var $_background;var $_borderColor;function setAlign($align=null){if(isset($align)){$this->_align=$align;}return $this;}function setWidth($width=null){if(isset($width)){$this->_width=$width;}return $this;}function setHeight($height=null){if(isset($height)){$this->_height=$height;}return $this;}function setBorder($border=null){if(isset($border)){$this->_border=$border;}return $this;}function setBgColor($bgColor=null){if(isset($bgColor)){$this->_bgColor=$bgColor;}return $this;}function setCellSpacing($cellSpacing=null){if(isset($cellSpacing)){$this->_cellSpacing=$cellSpacing;}return $this;}function setCellPadding($cellPadding=null){if(isset($cellPadding)){$this->_cellPadding=$cellPadding;}return $this;}function setBackground($background=null){if(isset($background)){$this->_background=$background;}return $this;}function setBorderColor($borderColor=null){if(isset($borderColor)){$this->_borderColor=$borderColor;}return $this;}function getAlign(){return $this->_align;}function getWidth(){return $this->_width;}function getHeight(){return $this->_height;}function getBorder(){return $this->_border;}function getBgColor(){return $this->_bgColor;}function getCellSpacing(){return $this->_cellSpacing;}function getCellPadding(){return $this->_cellPadding;}function getBackground(){return $this->_background;}function getBorderColor(){return $this->_borderColor;}function unsetAlign(){unset($this->_align);return $this;}function unsetWidth(){unset($this->_width);return $this;}function unsetHeight(){unset($this->_height);return $this;}function unsetBorder(){unset($this->_border);return $this;}function unsetBgColor(){unset($this->_bgColor);return $this;}function unsetCellSpacing(){unset($this->_cellSpacing);return $this;}function unsetCellPadding(){unset($this->_cellPadding);return $this;}function unsetBackground(){unset($this->_background);return $this;}function unsetBorderColor(){unset($this->_borderColor);return $this;}function asDefault(){$this->setTag('table');return $this;}function hasProperties(){$this->addProperty('align');$this->addProperty('width');$this->addProperty('height');$this->addProperty('border');$this->addProperty('bgColor');$this->addProperty('background');$this->addProperty('cellSpacing');$this->addProperty('cellPadding');$this->addProperty('borderColor');return $this;}function fromArguments($width=null,$height=null,$cellPadding=null,$cellSpacing=null,$border=null){$this->setWidth($width);$this->setHeight($height);$this->setBorder($border);$this->setCellPadding($cellPadding);$this->setCellSpacing($cellSpacing);return $this;}}class HTMLTableDataElement extends HTMLContainerElement{function HTMLTableDataElement($element=null){$this->HTMLContainerElement();HTMLTableDataElement::asDefault();HTMLTableDataElement::hasBooleans();HTMLTableDataElement::hasProperties();HTMLTableDataElement::fromArguments($element);}var $_align;var $_width;var $_height;var $_vAlign;var $_bgColor;var $_colSpan;var $_noWrap;var $_rowSpan;var $_background;function setAlign($align=null){if(isset($align)){$this->_align=$align;}return $this;}function setWidth($width=null){if(isset($width)){$this->_width=$width;}return $this;}function setHeight($height=null){if(isset($height)){$this->_height=$height;}return $this;}function setVAlign($vAlign=null){if(isset($vAlign)){$this->_vAlign=$vAlign;}return $this;}function setBgColor($bgColor=null){if(isset($bgColor)){$this->_bgColor=$bgColor;}return $this;}function setColSpan($colSpan=null){if(isset($colSpan)){$this->_colSpan=$colSpan;}return $this;}function setNoWrap($noWrap=null){if(isset($noWrap)){$this->_noWrap=$noWrap;}return $this;}function setRowSpan($rowSpan=null){if(isset($rowSpan)){$this->_rowSpan=$rowSpan;}return $this;}function setBackground($background=null){if(isset($background)){$this->_background=$background;}return $this;}function getAlign(){return $this->_align;}function getWidth(){return $this->_width;}function getHeight(){return $this->_height;}function getVAlign(){return $this->_vAlign;}function getBgColor(){return $this->_bgColor;}function getColSpan(){return $this->_colSpan;}function getNoWrap(){return $this->_noWrap;}function getRowSpan(){return $this->_rowSpan;}function getBackground(){return $this->_background;}function unsetAlign(){unset($this->_align);return $this;}function unsetWidth(){unset($this->_width);return $this;}function unsetHeight(){unset($this->_height);return $this;}function unsetVAlign(){unset($this->_vAlign);return $this;}function unsetBgColor(){unset($this->_bgColor);return $this;}function unsetColSpan(){unset($this->_colSpan);return $this;}function unsetNoWrap(){unset($this->_noWrap);return $this;}function unsetRowSpan(){unset($this->_rowSpan);return $this;}function unsetBackground(){unset($this->_background);return $this;}function asDefault(){$this->setTag('td');return $this;}function hasBooleans(){$this->addBoolean('noWrap');return $this;}function hasProperties(){$this->addProperty('align');$this->addProperty('width');$this->addProperty('height');$this->addProperty('vAlign');$this->addProperty('bgColor');$this->addProperty('colSpan');$this->addProperty('rowSpan');$this->addProperty('background');return $this;}function fromArguments($element=null){$this->addElement($element);return $this;}}class HTMLTableHeaderElement extends HTMLTableDataElement{function HTMLTableHeaderElement($element=null){$this->HTMLTableDataElement();HTMLTableHeaderElement::asDefault();HTMLTableHeaderElement::fromArguments($element);}function asDefault(){$this->setTag('th');return $this;}function fromArguments($element=null){$this->addElement($element);return $this;}}class HTMLTableRowElement extends HTMLContainerElement{function HTMLTableRowElement($align=null,$vAlign=null,$bgColor=null){$this->HTMLContainerElement();HTMLTableRowElement::asDefault();HTMLTableRowElement::hasProperties();HTMLTableRowElement::fromArguments($align,$vAlign,$bgColor);}var $_align;var $_vAlign;var $_bgColor;function setAlign($align=null){if(isset($align)){$this->_align=$align;}return $this;}function setVAlign($vAlign=null){if(isset($vAlign)){$this->_vAlign=$vAlign;}return $this;}function setBgColor($bgColor=null){if(isset($bgColor)){$this->_bgColor=$bgColor;}return $this;}function getAlign(){return $this->_align;}function getVAlign(){return $this->_vAlign;}function getBgColor(){return $this->_bgColor;}function unsetAlign(){unset($this->_align);return $this;}function unsetVAlign(){unset($this->_vAlign);return $this;}function unsetBgColor(){unset($this->_bgColor);return $this;}function asDefault(){$this->setTag('tr');return $this;}function hasProperties(){$this->addProperty('align');$this->addProperty('vAlign');$this->addProperty('bgColor');return $this;}function fromArguments($align=null,$vAlign=null,$bgColor=null){$this->setAlign($align);$this->setVAlign($vAlign);$this->setBgColor($bgColor);return $this;}}class HTMLTextAreaElement extends HTMLSingularElement{function HTMLTextAreaElement($name=null,$cols=null,$rows=null,$wrap=null,$value=null){$this->HTMLSingularElement();HTMLTextAreaElement::asDefault();HTMLTextAreaElement::hasBooleans();HTMLTextAreaElement::hasProperties();HTMLTextAreaElement::fromArguments($name,$cols,$rows,$wrap,$value);}var $_cols;var $_rows;var $_wrap;var $_name;var $_disabled;var $_readOnly;var $_tabIndex;function setCols($cols=null){if(isset($cols)){$this->_cols=$cols;}return $this;}function setRows($rows=null){if(isset($rows)){$this->_rows=$rows;}return $this;}function setWrap($wrap=null){if(isset($wrap)){$this->_wrap=$wrap;}return $this;}function setName($name=null){if(isset($name)){$this->_name=$name;}return $this;}function setDisabled($disabled=null){if(isset($disabled)){$this->_disabled=$disabled;}return $this;}function setReadOnly($readOnly=null){if(isset($readOnly)){$this->_readOnly=$readOnly;}return $this;}function setTabIndex($tabIndex=null){if(isset($tabIndex)){$this->_tabIndex=$tabIndex;}return $this;}function getCols(){return $this->_cols;}function getRows(){return $this->_rows;}function getWrap(){return $this->_wrap;}function getName(){return $this->_name;}function getDisabled(){return $this->_disabled;}function getReadOnly(){return $this->_readOnly;}function getTabIndex(){return $this->_tabIndex;}function unsetCols(){unset($this->_cols);return $this;}function unsetRows(){unset($this->_rows);return $this;}function unsetWrap(){unset($this->_wrap);return $this;}function unsetName(){unset($this->_name);return $this;}function unsetDisabled(){unset($this->_disabled);return $this;}function unsetReadOnly(){unset($this->_readOnly);return $this;}function unsetTabIndex(){unset($this->_tabIndex);return $this;}function asDefault(){$this->setTag('textarea');return $this;}function hasBooleans(){$this->addBoolean('disabled');$this->addBoolean('readOnly');return $this;}function hasProperties(){$this->addProperty('cols');$this->addProperty('rows');$this->addProperty('wrap');$this->addProperty('name');$this->addProperty('tabIndex');return $this;}function fromArguments($name=null,$cols=null,$rows=null,$wrap=null,$value=null){$this->setName($name);$this->setCols($cols);$this->setRows($rows);$this->setWrap($wrap);$this->setElement($value);return $this;}}class HTMLTitleElement extends HTMLSingularElement{function HTMLTitleElement($text=null){$this->HTMLSingularElement();HTMLTitleElement::asDefault();HTMLTitleElement::fromArguments($text);}function asDefault(){$this->setTag('title');return $this;}function fromArguments($text=null){$this->setElement($text);return $this;}}class HTMLUnderlineElement extends HTMLSingularElement{function HTMLUnderlineElement($element=null){$this->HTMLSingularElement();HTMLUnderlineElement::asDefault();HTMLUnderlineElement::fromArguments($element);}function asDefault(){$this->setTag('u');return $this;}function fromArguments($element=null){$this->setElement($element);return $this;}}class HTMLUnorderedListElement extends HTMLContainerElement{function HTMLUnorderedListElement($type=null,$compact=null){$this->HTMLContainerElement();HTMLUnorderedListElement::asDefault();HTMLUnorderedListElement::hasBooleans();HTMLUnorderedListElement::hasProperties();HTMLUnorderedListElement::fromArguments($type,$compact);}var $_type;var $_compact;function setType($type=null){if(isset($type)){$this->_type=$type;}return $this;}function setCompact($compact=null){if(isset($compact)){$this->_compact=$compact;}return $this;}function getType(){return $this->_type;}function getCompact(){return $this->_compact;}function unsetType(){unset($this->_type);return $this;}function unsetCompact(){unset($this->_compact);return $this;}function asDefault(){$this->setTag('ul');return $this;}function hasBooleans(){$this->addBoolean('compact');return $this;}function hasProperties(){$this->addProperty('type');return $this;}function fromArguments($type=null,$compact=null){$this->setType($type);$this->setCompact($compact);return $this;}}

?>
Return current item: Mocha