TrackManiaControl/application/core/FML/Elements/Including.php
Steffen Schröder 666785de90 FML Update
2013-12-09 13:05:05 +01:00

36 lines
557 B
PHP

<?php
namespace FML\Elements;
/**
* Class representing include
*
* @author steeffeen
*/
class Including implements Renderable {
/**
* Protected properties
*/
protected $url = '';
protected $tagName = 'include';
/**
* Set url
*
* @param string $url
*/
public function setUrl($url) {
$this->url = $url;
}
/**
*
* @see \FML\Renderable::render()
*/
public function render(\DOMDocument $domDocument) {
$xml = $domDocument->createElement($this->tagName);
$xml->setAttribute('url', $this->url);
return $xml;
}
}