AbstractMediaElement
class AbstractMediaElement extends HtmlElement (View source)
The AbstractMediaElement class.
Constants
PRELOAD_NONE |
|
PRELOAD_METADATA |
|
PRELOAD_AUTO |
|
Methods
__construct(array $attribs = array())
Constructor.
string
toString(boolean $forcePair = false)
toString
static AbstractMediaElement
create(array $attribs = array())
Quick create for PHP 5.3
setMainSource(string $src)
setMainSource
$this
addSource(string $type, string $src, string $media = null)
addSource
addOggSource(string $src, string $media = null)
addOggSource
string
getNoSupportHint()
Method to get property Hint
setNoSupportHint(string $hint)
Method to set property hint
autoplay(boolean $bool)
autoplay
controls(boolean $bool)
controls
loop(boolean $bool)
loop
muted(boolean $bool)
muted
preload(string $data)
preload
Details
at line line 38
__construct(array $attribs = array())
Constructor.
at line line 64
string
toString(boolean $forcePair = false)
toString
in DomElement at line line 79
string
render(boolean $forcePair = false)
Alias of toString()
in DomElement at line line 89
string
__toString()
Convert this object to string.
in DomElement at line line 106
mixed
getContent()
Get content.
in DomElement at line line 118
DomElement
setContent(mixed $content)
Set content.
in DomElement at line line 133
string
getAttribute(string $name, mixed $default = null)
Get attributes.
in DomElement at line line 151
DomElement
setAttribute(string $name, string $value)
Set attribute value.
in DomElement at line line 163
array
getAttributes()
Get all attributes.
in DomElement at line line 175
DomElement
setAttributes(array $attribs)
Set all attributes.
in DomElement at line line 187
string
getName()
Get element tag name.
in DomElement at line line 199
DomElement
setName(string $name)
Set element tag name.
in DomElement at line line 214
boolean
offsetExists(mixed $offset)
Whether a offset exists
in DomElement at line line 226
mixed
offsetGet(mixed $offset)
Offset to retrieve
in DomElement at line line 244
void
offsetSet(mixed $offset, mixed $value)
Offset to set
in DomElement at line line 256
void
offsetUnset(mixed $offset)
Offset to unset
at line line 52
static AbstractMediaElement
create(array $attribs = array())
Quick create for PHP 5.3
at line line 80
AbstractMediaElement
setMainSource(string $src)
setMainSource
at line line 96
$this
addSource(string $type, string $src, string $media = null)
addSource
at line line 115
AbstractMediaElement
addOggSource(string $src, string $media = null)
addOggSource
at line line 125
string
getNoSupportHint()
Method to get property Hint
at line line 137
AbstractMediaElement
setNoSupportHint(string $hint)
Method to set property hint
at line line 151
AbstractMediaElement
autoplay(boolean $bool)
autoplay
at line line 165
AbstractMediaElement
controls(boolean $bool)
controls
at line line 179
AbstractMediaElement
loop(boolean $bool)
loop
at line line 193
AbstractMediaElement
muted(boolean $bool)
muted
at line line 207
AbstractMediaElement
preload(string $data)
preload