fml update

This commit is contained in:
Steffen Schröder
2014-01-21 20:30:40 +01:00
parent 71a19d2464
commit 11abd5ee6e
73 changed files with 209 additions and 83 deletions

View File

@ -2,10 +2,10 @@
namespace FML;
use FML\Types\Renderable;
use FML\Script\Script;
use FML\Elements\Dico;
use FML\Script\Script;
use FML\Stylesheet\Stylesheet;
use FML\Types\Renderable;
/**
* Class representing a ManiaLink
@ -13,7 +13,7 @@ use FML\Stylesheet\Stylesheet;
* @author steeffeen
*/
class ManiaLink {
/**
/*
* Constants
*/
const BACKGROUND_0 = '0';
@ -21,7 +21,7 @@ class ManiaLink {
const BACKGROUND_STATIONS = 'stations';
const BACKGROUND_TITLE = 'title';
/**
/*
* Protected Properties
*/
protected $encoding = 'utf-8';
@ -224,16 +224,17 @@ class ManiaLink {
if (!$isChild) {
$domDocument->appendChild($maniaLink);
}
if ($this->id) {
if (strlen($this->id) > 0) {
$maniaLink->setAttribute('id', $this->id);
}
if ($this->version) {
$maniaLink->setAttribute('version', $this->version);
}
if ($this->background) {
if (strlen($this->background) > 0) {
$maniaLink->setAttribute('background', $this->background);
}
if (!$this->navigable3d) {
if ($this->navigable3d) {
// TODO: check default value
$maniaLink->setAttribute('navigable3d', $this->navigable3d);
}
if ($this->timeout) {