Class Tag
- package PHPHtmlParser\Dom
Cloneable
Instantiable
Methods |
public
__construct
(
string
$name
) Sets up the tag with a name. |
public
__get
(
$key
) Magic method to get any of the attributes.
|
public
__set
(
$key
,
$value
) Magic method to set any attribute. |
public
getAttribute
(
string
$key
) :
array
Returns an attribute by the key
|
public
getAttributes
() Returns all attributes of this tag.
|
public
getStyleAttributeArray
() :
array
Get style attribute in array
|
public
hasAttribute
(
string
$key
) Returns TRUE if node has attribute
|
public
isSelfClosing
() :
bool
Checks if the tag is self closing.
|
public
makeClosingTag
() Generates the closing tag for this object.
|
public
makeOpeningTag
() Generates the opening tag for this object.
|
public
name
() :
string
Returns the name of this tag.
|
public
noise
(
string
$noise
) :
PHPHtmlParser\Dom\Tag
|
public
noTrailingSlash
() :
PHPHtmlParser\Dom\Tag
|
public
removeAllAttributes
() Removes all attributes on this tag.
|
public
removeAttribute
(
$key
) Removes an attribute from this tag.
|
public
selfClosing
() :
PHPHtmlParser\Dom\Tag
|
public
setAttribute
(
string
$key
,
$value
) :
PHPHtmlParser\Dom\Tag
|
public
setAttributes
(
array
$attr
) Sets the attributes for this tag
|
public
setEncoding
(
stringEncode\Encode
$encode
) :
void
Sets the encoding type to be used.
|
public
setHtmlSpecialCharsDecode
(
$htmlSpecialCharsDecode
=
false
) :
void
|
public
setStyleAttributeValue
(
$attr_key
,
$attr_value
) :
void
Set inline style attribute value. |
Properties |
protected
$attr
The attributes of the tag.
|
protected
$encode
The encoding class to... encode the tags
|
protected
$name
The name of the tag.
|
protected
$noise
Tag noise |
protected
$selfClosing
Is this tag self closing.
|
protected
$trailingSlash
If self-closing, will this use a trailing slash. />
|
Properties |
private
$HtmlSpecialCharsDecode
|