FML Update

This commit is contained in:
Steffen Schröder
2014-04-13 18:21:40 +02:00
parent 8ee564d4b7
commit 5ad45d3b6f
80 changed files with 341 additions and 11 deletions

View File

@ -11,12 +11,15 @@ use FML\Types\Renderable;
* Class representing a ManiaLink
*
* @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
*/
class ManiaLink {
/*
* Constants
*/
const BACKGROUND_0 = '0';
const BACKGROUND_1 = '1';
const BACKGROUND_STARS = 'stars';
const BACKGROUND_STATIONS = 'stations';
const BACKGROUND_TITLE = 'title';
@ -163,7 +166,7 @@ class ManiaLink {
*/
public function getDico($createIfEmpty = true) {
if (!$this->dico && $createIfEmpty) {
$this->dico = new Dico();
$this->setDico(new Dico());
}
return $this->dico;
}
@ -187,7 +190,7 @@ class ManiaLink {
*/
public function getStylesheet($createIfEmpty = true) {
if (!$this->stylesheet && $createIfEmpty) {
$this->stylesheet = new Stylesheet();
$this->setStylesheet(new Stylesheet());
}
return $this->stylesheet;
}
@ -211,7 +214,7 @@ class ManiaLink {
*/
public function getScript($createIfEmpty = true) {
if (!$this->script && $createIfEmpty) {
$this->script = new Script();
$this->setScript(new Script());
}
return $this->script;
}