TrackManiaControl/application/core/FML/Controls/FileEntry.php
Steffen Schröder 5447588749 Huge FML Update
2013-12-31 02:55:41 +01:00

49 lines
799 B
PHP

<?php
namespace FML\Controls;
/**
* Class representing CMlFileEntry
*
* @author steeffeen
*/
class FileEntry extends Entry {
/**
* Protected Properties
*/
protected $folder = '';
/**
* Construct a new FileEntry Control
*
* @param string $id
* Control Id
*/
public function __construct($id = null) {
parent::__construct($id);
$this->tagName = 'fileentry';
}
/**
* Set Folder
*
* @param string $folder
* Base Folder
* @return \FML\Controls\FileEntry
*/
public function setFolder($folder) {
$this->folder = $folder;
return $this;
}
/**
*
* @see \FML\Entry::render()
*/
public function render(\DOMDocument $domDocument) {
$xml = parent::render($domDocument);
$xml->setAttribute('folder', $this->folder);
return $xml;
}
}