Element
in package
Table of Contents
Constants
- CATEGORY_ANY = 'ANY'
- CATEGORY_EMPTY = 'EMPTY'
- TYPE_PCDATA = '#PCDATA'
Properties
- $attributes : string|null
- $content : string|null
- $name : string|null
- $raw : string|null
Methods
- __construct() : mixed
- erzeugt ein neues Element
- appendAttribute() : void
- hasAttributes() : mixed
- hasElements() : true|false
- isAny() : true|false
- prüft ob Element ANY ist
- isEmpty() : true|false
- prüft ob Element leer ist
- isPCDATA() : true|false
- prüft ob Element #PCDATA enthält
Constants
CATEGORY_ANY
public
string
CATEGORY_ANY
= 'ANY'
ANY Kategorie
CATEGORY_EMPTY
public
string
CATEGORY_EMPTY
= 'EMPTY'
EMPTY Kategorie
TYPE_PCDATA
public
string
TYPE_PCDATA
= '#PCDATA'
PCDATA Type
Properties
$attributes
public
string|null
$attributes
= []
Name des Elements
$content
public
string|null
$content
= []
Name des Elements
$name
public
string|null
$name
= null
Name des Elements
$raw
public
string|null
$raw
= null
Name des Elements
Methods
__construct()
erzeugt ein neues Element
public
__construct(mixed $name) : mixed
Parameters
- $name : mixed
appendAttribute()
public
appendAttribute(mixed $attr) : void
Parameters
- $attr : mixed
hasAttributes()
public
hasAttributes() : mixed
hasElements()
public
hasElements() : true|false
Return values
true|falseisAny()
prüft ob Element ANY ist
public
isAny() : true|false
Return values
true|falseisEmpty()
prüft ob Element leer ist
public
isEmpty() : true|false
Return values
true|falseisPCDATA()
prüft ob Element #PCDATA enthält
public
isPCDATA() : true|false