FML Update
This commit is contained in:
@ -5,9 +5,9 @@ namespace FML\ManiaCode;
|
||||
/**
|
||||
* ManiaCode Element installing a Map
|
||||
*
|
||||
* @author steeffeen
|
||||
* @author steeffeen
|
||||
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
|
||||
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||
*/
|
||||
class InstallMap implements Element {
|
||||
/*
|
||||
@ -21,7 +21,7 @@ class InstallMap implements Element {
|
||||
* Create a new InstallMap Element
|
||||
*
|
||||
* @param string $name (optional) Map Name
|
||||
* @param string $url (optional) Map Url
|
||||
* @param string $url (optional) Map Url
|
||||
* @return \FML\ManiaCode\InstallMap
|
||||
*/
|
||||
public static function create($name = null, $url = null) {
|
||||
@ -33,7 +33,7 @@ class InstallMap implements Element {
|
||||
* Construct a new InstallMap Element
|
||||
*
|
||||
* @param string $name (optional) Map Name
|
||||
* @param string $url (optional) Map Url
|
||||
* @param string $url (optional) Map Url
|
||||
*/
|
||||
public function __construct($name = null, $url = null) {
|
||||
if ($name !== null) {
|
||||
@ -51,7 +51,7 @@ class InstallMap implements Element {
|
||||
* @return \FML\ManiaCode\InstallMap
|
||||
*/
|
||||
public function setName($name) {
|
||||
$this->name = (string) $name;
|
||||
$this->name = (string)$name;
|
||||
return $this;
|
||||
}
|
||||
|
||||
@ -62,16 +62,15 @@ class InstallMap implements Element {
|
||||
* @return \FML\ManiaCode\InstallMap
|
||||
*/
|
||||
public function setUrl($url) {
|
||||
$this->url = (string) $url;
|
||||
$this->url = (string)$url;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @see \FML\ManiaCode\Element::render()
|
||||
*/
|
||||
public function render(\DOMDocument $domDocument) {
|
||||
$xmlElement = $domDocument->createElement($this->tagName);
|
||||
$xmlElement = $domDocument->createElement($this->tagName);
|
||||
$nameElement = $domDocument->createElement('name', $this->name);
|
||||
$xmlElement->appendChild($nameElement);
|
||||
$urlElement = $domDocument->createElement('url', $this->url);
|
||||
|
@ -5,9 +5,9 @@ namespace FML\ManiaCode;
|
||||
/**
|
||||
* ManiaCode Element installing a Title Pack
|
||||
*
|
||||
* @author steeffeen
|
||||
* @author steeffeen
|
||||
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
|
||||
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||
*/
|
||||
class InstallPack implements Element {
|
||||
/*
|
||||
@ -23,7 +23,7 @@ class InstallPack implements Element {
|
||||
*
|
||||
* @param string $name (optional) Pack Name
|
||||
* @param string $file (optional) Pack File
|
||||
* @param string $url (optional) Pack Url
|
||||
* @param string $url (optional) Pack Url
|
||||
* @return \FML\ManiaCode\InstallPack
|
||||
*/
|
||||
public static function create($name = null, $file = null, $url = null) {
|
||||
@ -36,7 +36,7 @@ class InstallPack implements Element {
|
||||
*
|
||||
* @param string $name (optional) Pack Name
|
||||
* @param string $file (optional) Pack File
|
||||
* @param string $url (optional) Pack Url
|
||||
* @param string $url (optional) Pack Url
|
||||
*/
|
||||
public function __construct($name = null, $file = null, $url = null) {
|
||||
if ($name !== null) {
|
||||
@ -57,7 +57,7 @@ class InstallPack implements Element {
|
||||
* @return \FML\ManiaCode\InstallPack
|
||||
*/
|
||||
public function setName($name) {
|
||||
$this->name = (string) $name;
|
||||
$this->name = (string)$name;
|
||||
return $this;
|
||||
}
|
||||
|
||||
@ -68,7 +68,7 @@ class InstallPack implements Element {
|
||||
* @return \FML\ManiaCode\InstallPack
|
||||
*/
|
||||
public function setFile($file) {
|
||||
$this->file = (string) $file;
|
||||
$this->file = (string)$file;
|
||||
return $this;
|
||||
}
|
||||
|
||||
@ -79,16 +79,15 @@ class InstallPack implements Element {
|
||||
* @return \FML\ManiaCode\InstallPack
|
||||
*/
|
||||
public function setUrl($url) {
|
||||
$this->url = (string) $url;
|
||||
$this->url = (string)$url;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @see \FML\ManiaCode\Element::render()
|
||||
*/
|
||||
public function render(\DOMDocument $domDocument) {
|
||||
$xmlElement = $domDocument->createElement($this->tagName);
|
||||
$xmlElement = $domDocument->createElement($this->tagName);
|
||||
$nameElement = $domDocument->createElement('name', $this->name);
|
||||
$xmlElement->appendChild($nameElement);
|
||||
$fileElement = $domDocument->createElement('file', $this->file);
|
||||
|
@ -5,9 +5,9 @@ namespace FML\ManiaCode;
|
||||
/**
|
||||
* ManiaCode Element installing a Replay
|
||||
*
|
||||
* @author steeffeen
|
||||
* @author steeffeen
|
||||
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
|
||||
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||
*/
|
||||
class InstallReplay implements Element {
|
||||
/*
|
||||
@ -21,7 +21,7 @@ class InstallReplay implements Element {
|
||||
* Create a new InstallReplay Element
|
||||
*
|
||||
* @param string $name (optional) Replay Name
|
||||
* @param string $url (optional) Replay Url
|
||||
* @param string $url (optional) Replay Url
|
||||
* @return \FML\ManiaCode\InstallReplay
|
||||
*/
|
||||
public static function create($name = null, $url = null) {
|
||||
@ -33,7 +33,7 @@ class InstallReplay implements Element {
|
||||
* Construct a new InstallReplay Element
|
||||
*
|
||||
* @param string $name (optional) Replay Name
|
||||
* @param string $url (optional) Replay Url
|
||||
* @param string $url (optional) Replay Url
|
||||
*/
|
||||
public function __construct($name = null, $url = null) {
|
||||
if ($name !== null) {
|
||||
@ -51,7 +51,7 @@ class InstallReplay implements Element {
|
||||
* @return \FML\ManiaCode\InstallReplay
|
||||
*/
|
||||
public function setName($name) {
|
||||
$this->name = (string) $name;
|
||||
$this->name = (string)$name;
|
||||
return $this;
|
||||
}
|
||||
|
||||
@ -62,16 +62,15 @@ class InstallReplay implements Element {
|
||||
* @return \FML\ManiaCode\InstallReplay
|
||||
*/
|
||||
public function setUrl($url) {
|
||||
$this->url = (string) $url;
|
||||
$this->url = (string)$url;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @see \FML\ManiaCode\Element::render()
|
||||
*/
|
||||
public function render(\DOMDocument $domDocument) {
|
||||
$xmlElement = $domDocument->createElement($this->tagName);
|
||||
$xmlElement = $domDocument->createElement($this->tagName);
|
||||
$nameElement = $domDocument->createElement('name', $this->name);
|
||||
$xmlElement->appendChild($nameElement);
|
||||
$urlElement = $domDocument->createElement('url', $this->url);
|
||||
|
@ -5,9 +5,9 @@ namespace FML\ManiaCode;
|
||||
/**
|
||||
* ManiaCode Element installing a Script
|
||||
*
|
||||
* @author steeffeen
|
||||
* @author steeffeen
|
||||
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
|
||||
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||
*/
|
||||
class InstallScript implements Element {
|
||||
/*
|
||||
@ -23,7 +23,7 @@ class InstallScript implements Element {
|
||||
*
|
||||
* @param string $name (optional) Script Name
|
||||
* @param string $file (optional) Script File
|
||||
* @param string $url (optional) Script Url
|
||||
* @param string $url (optional) Script Url
|
||||
* @return \FML\ManiaCode\InstallScript
|
||||
*/
|
||||
public static function create($name = null, $file = null, $url = null) {
|
||||
@ -36,7 +36,7 @@ class InstallScript implements Element {
|
||||
*
|
||||
* @param string $name (optional) Script Name
|
||||
* @param string $file (optional) Script File
|
||||
* @param string $url (optional) Script Url
|
||||
* @param string $url (optional) Script Url
|
||||
*/
|
||||
public function __construct($name = null, $file = null, $url = null) {
|
||||
if ($name !== null) {
|
||||
@ -57,7 +57,7 @@ class InstallScript implements Element {
|
||||
* @return \FML\ManiaCode\InstallScript
|
||||
*/
|
||||
public function setName($name) {
|
||||
$this->name = (string) $name;
|
||||
$this->name = (string)$name;
|
||||
return $this;
|
||||
}
|
||||
|
||||
@ -68,7 +68,7 @@ class InstallScript implements Element {
|
||||
* @return \FML\ManiaCode\InstallScript
|
||||
*/
|
||||
public function setFile($file) {
|
||||
$this->file = (string) $file;
|
||||
$this->file = (string)$file;
|
||||
return $this;
|
||||
}
|
||||
|
||||
@ -79,16 +79,15 @@ class InstallScript implements Element {
|
||||
* @return \FML\ManiaCode\InstallScript
|
||||
*/
|
||||
public function setUrl($url) {
|
||||
$this->url = (string) $url;
|
||||
$this->url = (string)$url;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @see \FML\ManiaCode\Element::render()
|
||||
*/
|
||||
public function render(\DOMDocument $domDocument) {
|
||||
$xmlElement = $domDocument->createElement($this->tagName);
|
||||
$xmlElement = $domDocument->createElement($this->tagName);
|
||||
$nameElement = $domDocument->createElement('name', $this->name);
|
||||
$xmlElement->appendChild($nameElement);
|
||||
$fileElement = $domDocument->createElement('file', $this->file);
|
||||
|
@ -5,9 +5,9 @@ namespace FML\ManiaCode;
|
||||
/**
|
||||
* ManiaCode Element installing a Skin
|
||||
*
|
||||
* @author steeffeen
|
||||
* @author steeffeen
|
||||
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
|
||||
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||
*/
|
||||
class InstallSkin implements Element {
|
||||
/*
|
||||
@ -23,7 +23,7 @@ class InstallSkin implements Element {
|
||||
*
|
||||
* @param string $name (optional) Skin Name
|
||||
* @param string $file (optional) Skin File
|
||||
* @param string $url (optional) Skin Url
|
||||
* @param string $url (optional) Skin Url
|
||||
* @return \FML\ManiaCode\InstallSkin
|
||||
*/
|
||||
public static function create($name = null, $file = null, $url = null) {
|
||||
@ -36,7 +36,7 @@ class InstallSkin implements Element {
|
||||
*
|
||||
* @param string $name (optional) Skin Name
|
||||
* @param string $file (optional) Skin File
|
||||
* @param string $url (optional) Skin Url
|
||||
* @param string $url (optional) Skin Url
|
||||
*/
|
||||
public function __construct($name = null, $file = null, $url = null) {
|
||||
if ($name !== null) {
|
||||
@ -57,7 +57,7 @@ class InstallSkin implements Element {
|
||||
* @return \FML\ManiaCode\InstallSkin
|
||||
*/
|
||||
public function setName($name) {
|
||||
$this->name = (string) $name;
|
||||
$this->name = (string)$name;
|
||||
return $this;
|
||||
}
|
||||
|
||||
@ -68,7 +68,7 @@ class InstallSkin implements Element {
|
||||
* @return \FML\ManiaCode\InstallSkin
|
||||
*/
|
||||
public function setFile($file) {
|
||||
$this->file = (string) $file;
|
||||
$this->file = (string)$file;
|
||||
return $this;
|
||||
}
|
||||
|
||||
@ -79,16 +79,15 @@ class InstallSkin implements Element {
|
||||
* @return \FML\ManiaCode\InstallSkin
|
||||
*/
|
||||
public function setUrl($url) {
|
||||
$this->url = (string) $url;
|
||||
$this->url = (string)$url;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @see \FML\ManiaCode\Element::render()
|
||||
*/
|
||||
public function render(\DOMDocument $domDocument) {
|
||||
$xmlElement = $domDocument->createElement($this->tagName);
|
||||
$xmlElement = $domDocument->createElement($this->tagName);
|
||||
$nameElement = $domDocument->createElement('name', $this->name);
|
||||
$xmlElement->appendChild($nameElement);
|
||||
$fileElement = $domDocument->createElement('file', $this->file);
|
||||
|
@ -5,9 +5,9 @@ namespace FML\ManiaCode;
|
||||
/**
|
||||
* ManiaCode Element joining a Server
|
||||
*
|
||||
* @author steeffeen
|
||||
* @author steeffeen
|
||||
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
|
||||
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||
*/
|
||||
class JoinServer implements Element {
|
||||
/*
|
||||
@ -47,28 +47,27 @@ class JoinServer implements Element {
|
||||
* @return \FML\ManiaCode\JoinServer
|
||||
*/
|
||||
public function setLogin($login) {
|
||||
$this->login = (string) $login;
|
||||
$this->ip = null;
|
||||
$this->port = null;
|
||||
$this->login = (string)$login;
|
||||
$this->ip = null;
|
||||
$this->port = null;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the Server Ip and Port
|
||||
*
|
||||
* @param string $ip Server Ip
|
||||
* @param int $port Server Port
|
||||
* @param string $ip Server Ip
|
||||
* @param int $port Server Port
|
||||
* @return \FML\ManiaCode\JoinServer
|
||||
*/
|
||||
public function setIp($ip, $port) {
|
||||
$this->ip = (string) $ip;
|
||||
$this->port = (int) $port;
|
||||
$this->ip = (string)$ip;
|
||||
$this->port = (int)$port;
|
||||
$this->login = null;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @see \FML\ManiaCode\Element::render()
|
||||
*/
|
||||
public function render(\DOMDocument $domDocument) {
|
||||
@ -76,8 +75,7 @@ class JoinServer implements Element {
|
||||
if ($this->ip === null) {
|
||||
$loginElement = $domDocument->createElement('login', $this->login);
|
||||
$xmlElement->appendChild($loginElement);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
$ipElement = $domDocument->createElement('ip', $this->ip . ':' . $this->port);
|
||||
$xmlElement->appendChild($ipElement);
|
||||
}
|
||||
|
@ -5,9 +5,9 @@ namespace FML\ManiaCode;
|
||||
/**
|
||||
* ManiaCode Element playing a Map
|
||||
*
|
||||
* @author steeffeen
|
||||
* @author steeffeen
|
||||
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
|
||||
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||
*/
|
||||
class PlayMap implements Element {
|
||||
/*
|
||||
@ -21,7 +21,7 @@ class PlayMap implements Element {
|
||||
* Create a new PlayMap Element
|
||||
*
|
||||
* @param string $name (optional) Map Name
|
||||
* @param string $url (optional) Map Url
|
||||
* @param string $url (optional) Map Url
|
||||
* @return \FML\ManiaCode\PlayMap
|
||||
*/
|
||||
public static function create($name = null, $url = null) {
|
||||
@ -33,7 +33,7 @@ class PlayMap implements Element {
|
||||
* Construct a new PlayMap Element
|
||||
*
|
||||
* @param string $name (optional) Map Name
|
||||
* @param string $url (optional) Map Url
|
||||
* @param string $url (optional) Map Url
|
||||
*/
|
||||
public function __construct($name = null, $url = null) {
|
||||
if ($name !== null) {
|
||||
@ -51,7 +51,7 @@ class PlayMap implements Element {
|
||||
* @return \FML\ManiaCode\PlayMap
|
||||
*/
|
||||
public function setName($name) {
|
||||
$this->name = (string) $name;
|
||||
$this->name = (string)$name;
|
||||
return $this;
|
||||
}
|
||||
|
||||
@ -62,16 +62,15 @@ class PlayMap implements Element {
|
||||
* @return \FML\ManiaCode\PlayMap
|
||||
*/
|
||||
public function setUrl($url) {
|
||||
$this->url = (string) $url;
|
||||
$this->url = (string)$url;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @see \FML\ManiaCode\Element::render()
|
||||
*/
|
||||
public function render(\DOMDocument $domDocument) {
|
||||
$xmlElement = $domDocument->createElement($this->tagName);
|
||||
$xmlElement = $domDocument->createElement($this->tagName);
|
||||
$nameElement = $domDocument->createElement('name', $this->name);
|
||||
$xmlElement->appendChild($nameElement);
|
||||
$urlElement = $domDocument->createElement('url', $this->url);
|
||||
|
@ -5,9 +5,9 @@ namespace FML\ManiaCode;
|
||||
/**
|
||||
* ManiaCode Element playing a Replay
|
||||
*
|
||||
* @author steeffeen
|
||||
* @author steeffeen
|
||||
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
|
||||
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||
*/
|
||||
class PlayReplay implements Element {
|
||||
/*
|
||||
@ -21,7 +21,7 @@ class PlayReplay implements Element {
|
||||
* Create a new PlayReplay Element
|
||||
*
|
||||
* @param string $name (optional) Replay Name
|
||||
* @param string $url (optional) Replay Url
|
||||
* @param string $url (optional) Replay Url
|
||||
* @return \FML\ManiaCode\PlayReplay
|
||||
*/
|
||||
public static function create($name = null, $url = null) {
|
||||
@ -33,7 +33,7 @@ class PlayReplay implements Element {
|
||||
* Construct a new PlayReplay Element
|
||||
*
|
||||
* @param string $name (optional) Replay Name
|
||||
* @param string $url (optional) Replay Url
|
||||
* @param string $url (optional) Replay Url
|
||||
*/
|
||||
public function __construct($name = null, $url = null) {
|
||||
if ($name !== null) {
|
||||
@ -51,7 +51,7 @@ class PlayReplay implements Element {
|
||||
* @return \FML\ManiaCode\PlayReplay
|
||||
*/
|
||||
public function setName($name) {
|
||||
$this->name = (string) $name;
|
||||
$this->name = (string)$name;
|
||||
return $this;
|
||||
}
|
||||
|
||||
@ -62,16 +62,15 @@ class PlayReplay implements Element {
|
||||
* @return \FML\ManiaCode\PlayReplay
|
||||
*/
|
||||
public function setUrl($url) {
|
||||
$this->url = (string) $url;
|
||||
$this->url = (string)$url;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @see \FML\ManiaCode\Element::render()
|
||||
*/
|
||||
public function render(\DOMDocument $domDocument) {
|
||||
$xmlElement = $domDocument->createElement($this->tagName);
|
||||
$xmlElement = $domDocument->createElement($this->tagName);
|
||||
$nameElement = $domDocument->createElement('name', $this->name);
|
||||
$xmlElement->appendChild($nameElement);
|
||||
$urlElement = $domDocument->createElement('url', $this->url);
|
||||
|
@ -5,9 +5,9 @@ namespace FML\ManiaCode;
|
||||
/**
|
||||
* ManiaCode Element showing a Message
|
||||
*
|
||||
* @author steeffeen
|
||||
* @author steeffeen
|
||||
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
|
||||
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||
*/
|
||||
class ShowMessage implements Element {
|
||||
/*
|
||||
@ -18,7 +18,7 @@ class ShowMessage implements Element {
|
||||
|
||||
/**
|
||||
* Create a new ShowMessage Element
|
||||
*
|
||||
*
|
||||
* @param string $message (optional) Message Text
|
||||
* @return \FML\ManiaCode\ShowMessage
|
||||
*/
|
||||
@ -45,16 +45,15 @@ class ShowMessage implements Element {
|
||||
* @return \FML\ManiaCode\ShowMessage
|
||||
*/
|
||||
public function setMessage($message) {
|
||||
$this->message = (string) $message;
|
||||
$this->message = (string)$message;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @see \FML\ManiaCode\Element::render()
|
||||
*/
|
||||
public function render(\DOMDocument $domDocument) {
|
||||
$xmlElement = $domDocument->createElement($this->tagName);
|
||||
$xmlElement = $domDocument->createElement($this->tagName);
|
||||
$messageElement = $domDocument->createElement('message', $this->message);
|
||||
$xmlElement->appendChild($messageElement);
|
||||
return $xmlElement;
|
||||
|
@ -5,9 +5,9 @@ namespace FML\ManiaCode;
|
||||
/**
|
||||
* ManiaCode Element viewing a Replay
|
||||
*
|
||||
* @author steeffeen
|
||||
* @author steeffeen
|
||||
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
|
||||
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||
*/
|
||||
class ViewReplay implements Element {
|
||||
/*
|
||||
@ -19,9 +19,9 @@ class ViewReplay implements Element {
|
||||
|
||||
/**
|
||||
* Create a new ViewReplay Element
|
||||
*
|
||||
*
|
||||
* @param string $name (optional) Replay Name
|
||||
* @param string $url (optional) Replay Url
|
||||
* @param string $url (optional) Replay Url
|
||||
* @return \FML\ManiaCode\ViewReplay
|
||||
*/
|
||||
public static function create($name = null, $url = null) {
|
||||
@ -33,7 +33,7 @@ class ViewReplay implements Element {
|
||||
* Construct a new ViewReplay Element
|
||||
*
|
||||
* @param string $name (optional) Replay Name
|
||||
* @param string $url (optional) Replay Url
|
||||
* @param string $url (optional) Replay Url
|
||||
*/
|
||||
public function __construct($name = null, $url = null) {
|
||||
if ($name !== null) {
|
||||
@ -51,7 +51,7 @@ class ViewReplay implements Element {
|
||||
* @return \FML\ManiaCode\ViewReplay
|
||||
*/
|
||||
public function setName($name) {
|
||||
$this->name = (string) $name;
|
||||
$this->name = (string)$name;
|
||||
return $this;
|
||||
}
|
||||
|
||||
@ -62,16 +62,15 @@ class ViewReplay implements Element {
|
||||
* @return \FML\ManiaCode\ViewReplay
|
||||
*/
|
||||
public function setUrl($url) {
|
||||
$this->url = (string) $url;
|
||||
$this->url = (string)$url;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @see \FML\ManiaCode\Element::render()
|
||||
*/
|
||||
public function render(\DOMDocument $domDocument) {
|
||||
$xmlElement = $domDocument->createElement($this->tagName);
|
||||
$xmlElement = $domDocument->createElement($this->tagName);
|
||||
$nameElement = $domDocument->createElement('name', $this->name);
|
||||
$xmlElement->appendChild($nameElement);
|
||||
$urlElement = $domDocument->createElement('url', $this->url);
|
||||
|
Reference in New Issue
Block a user