\FML\ElementsSimpleScript

Class representing a ManiaLink script tag with a simple script text

Summary

Methods
Properties
Constants
create()
__construct()
getText()
setText()
render()
No public properties found
No constants found
No protected methods found
$text
N/A
No private methods found
No private properties found
N/A

Properties

$text

$text : string

Type

string — Script text

Methods

create()

create(string  $text = null) : static

Create a new SimpleScript

Parameters

string $text

(optional) Script text

Returns

static

__construct()

__construct(string  $text = null) 

Construct a new SimpleScript

Parameters

string $text

(optional) Script text

getText()

getText() : string

Get the script text

Returns

string

setText()

setText(string  $text) : static

Set the script text

Parameters

string $text

Complete script text

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