Custom UI Manager

This commit is contained in:
Steffen Schröder
2013-12-30 14:52:48 +01:00
parent 9bb2495756
commit 2e8a18692c
4 changed files with 325 additions and 155 deletions

View File

@ -2,6 +2,8 @@
namespace FML\Elements;
use FML\Types\Renderable;
/**
* Class representing the Custom_UI
*
@ -119,7 +121,7 @@ class CustomUI implements Renderable {
foreach ($settings as $setting => $value) {
if ($value === null) continue;
$xmlElement = $domDocument->createElement($setting);
$xmlElement->setAttribute('visible', ($value ? 1 : 0));
$xmlElement->setAttribute('visible', ($value ? 'true' : 'false'));
$xml->appendChild($xmlElement);
}
return $xml;