|
|
|
File: /usr/local/apache_8080/htdocs/devel/Intra/class/phpdom/domhtml_element.php
Document Object Model for PHP - phpDOM.XHTML
HTMLElement
Node | +-- Element | +-- HTMLElement
The HTMLElement-Class
|
private class HTMLElement extends Element
The HTMLElement-Class
The base class for all HTMLElementsThe HTMLElement Class serves as a basis for all HTML related elements, itdefines functions for setting and retrieving general attributes.This class is not meant to be used directly.
|
| |
|
Direct known subclasses: HTMLParagraphElement, HTMLAnchorElement, HTMLBodyElement, HTMLBrElement, HTMLInputElement, HTMLFontElement, HTMLFormElement, HTMLHeadElement, HTMLHtmlElement, HTMLImageElement, HTMLLinkElement, HTMLMetaElement, HTMLTablecellElement, HTMLScriptElement, HTMLSpanElement, HTMLTablerowElement, HTMLTableElement, HTMLTitleElement
|
|
|
|
Methods inherited from Node |
| Node, Tag, appendChild, cloneNode, removeChild, getOwnerDocument, getFirstChild, getNextChild, getLastChild, getNodeById, hasChildNodes, hasMoreElements, getParentNode, getParent, getChildNodes, setNodeValue, getNodeValue, getAttributes, toString, getNodeName, getNodeType, addElement, _internal_toString, _internal_cloneNode, _internal_selfCheck, _internal_getNodeById |
|
Public Method Summary |
| void |
HTMLElement([ string $name, string $content ])HTMLElement generic constructor |
| string |
getClassName()getClassName returns the name of the current class! |
| boolean |
setStyle(string $style)setStyle set the style attribute of the current HTMLElement. |
| boolean |
setId(string $id)setId set the id attribute of the current HTMLElementWarning: documentation is missing. |
| boolean |
setClass(string $cssclass)setClass set the class attribute of the current HTMLElement |
| boolean |
setTitle(string $title)setTitle set the title attribute of the current HTMLElement |
| boolean |
setLang(string $lang)setLang set the lang attribute of the current HTMLElement |
| string |
getStyle()getStyle returns the style attribute, returns false if the attribute is not set |
| string |
getId()getId returns the id attribute, returns false if the attribute is not setWarning: documentation is missing. |
| string |
getClass()getClass returns the class attribute, returns false if the attribute is not set |
| string |
getLang()getLang returns the lang attribute, returns false if the attribute is not set |
| string |
getTitle()getTitle returns the title attribute, if the attribute is not set, it will return false |
|
|
|
|
|
Public Method Details |
HTMLElement |
|
public void HTMLElement( [ string $name, string $content ] )
|
| |
HTMLElement generic constructor
This class is not meant to be used directly. So this constructor is onlyfor convenient usage, when dealing with HTMLElement objects.
|
| Parameter |
|
| string |
$name |
= >>""<< |
|
The name of the html element |
|
|
| string |
$content |
= >>""<< |
|
The content of the html element |
|
| Returns |
void |
|
getClassName |
|
public string getClassName( )
|
| |
getClassName returns the name of the current class!
the ClassName of the current Element. The PHP Function get_class is usedto determine the classname.
|
| Returns |
string $classname |
|
setStyle |
|
public boolean setStyle( string $style )
|
| |
setStyle set the style attribute of the current HTMLElement.
|
| Parameter |
|
| string |
$style |
|
|
Valid CSS instruction |
|
| Returns |
boolean true |
|
setId |
|
public boolean setId( string $id )
|
| |
setId set the id attribute of the current HTMLElement
Warning: documentation is missing.
|
| Parameter |
|
| string |
$id |
|
|
Wert des Attributes |
|
| Returns |
boolean true |
|
setClass |
|
public boolean setClass( string $cssclass )
|
| |
setClass set the class attribute of the current HTMLElement
|
| Parameter |
|
| string |
$cssclass |
|
|
Name of the css-class |
|
| Returns |
boolean true |
|
setTitle |
|
public boolean setTitle( string $title )
|
| |
setTitle set the title attribute of the current HTMLElement
|
| Parameter |
|
| string |
$title |
|
|
Title for the Element |
|
| Returns |
boolean true |
|
setLang |
|
public boolean setLang( string $lang )
|
| |
setLang set the lang attribute of the current HTMLElement
|
| Parameter |
|
|
| Returns |
boolean true |
|
getStyle |
|
public string getStyle( )
|
| |
getStyle returns the style attribute, returns false if the attribute is not set
|
| Returns |
string $style |
|
getId |
|
public string getId( )
|
| |
getId returns the id attribute, returns false if the attribute is not set
Warning: documentation is missing.
|
| Returns |
string $id |
|
getClass |
|
public string getClass( )
|
| |
getClass returns the class attribute, returns false if the attribute is not set
|
| Returns |
string $class |
|
getLang |
|
public string getLang( )
|
| |
getLang returns the lang attribute, returns false if the attribute is not set
|
| Returns |
string $lang |
|
getTitle |
|
public string getTitle( )
|
| |
getTitle returns the title attribute, if the attribute is not set, it will return false
|
| Returns |
string $title |
|
|
|
|
|
| PHPDoc 1.0beta |