FML Update
This commit is contained in:
@ -9,7 +9,11 @@ namespace FML\ManiaCode;
|
||||
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
|
||||
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||
*/
|
||||
interface Element {
|
||||
abstract class Element {
|
||||
/*
|
||||
* Protected properties
|
||||
*/
|
||||
protected $tagName = 'element';
|
||||
|
||||
/**
|
||||
* Render the ManiaCode Element
|
||||
@ -17,5 +21,8 @@ interface Element {
|
||||
* @param \DOMDocument $domDocument The DOMDocument for which the Element should be rendered
|
||||
* @return \DOMElement
|
||||
*/
|
||||
public function render(\DOMDocument $domDocument);
|
||||
public function render(\DOMDocument $domDocument) {
|
||||
$xmlElement = $domDocument->createElement($this->tagName);
|
||||
return $xmlElement;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user