\FML\ElementsMusic

Music Element

Summary

Methods
Properties
Constants
create()
__construct()
getData()
setData()
render()
No public properties found
No constants found
No protected methods found
$data
N/A
No private methods found
No private properties found
N/A

Properties

$data

$data : string

Type

string — Media url

Methods

create()

create(string  $data = null) : static

Create a new Music

Parameters

string $data

(optional) Media url

Returns

static

__construct()

__construct(string  $data = null) 

Construct a new Music

Parameters

string $data

(optional) Media url

getData()

getData() : string

Get the media url

Returns

string

setData()

setData(string  $data) : static

Set the media url

Parameters

string $data

Media url

Returns

static

render()

render(\DOMDocument  $domDocument) : \DOMElement

Render the XML element

Parameters

\DOMDocument $domDocument

DOMDocument for which the XML element should be rendered

Returns

\DOMElement