FML Update
This commit is contained in:
@ -159,7 +159,7 @@ class Dico {
|
||||
/**
|
||||
* Create a new Dictionary object
|
||||
*
|
||||
* @return \FML\Elements\Dico|static
|
||||
* @return static
|
||||
*/
|
||||
public static function create() {
|
||||
return new static();
|
||||
@ -171,7 +171,7 @@ class Dico {
|
||||
* @param string $language Language id
|
||||
* @param string $entryId Entry id
|
||||
* @param string $entryValue Translated entry value
|
||||
* @return \FML\Elements\Dico|static
|
||||
* @return static
|
||||
*/
|
||||
public function setEntry($language, $entryId, $entryValue) {
|
||||
$language = (string)$language;
|
||||
@ -195,7 +195,7 @@ class Dico {
|
||||
*
|
||||
* @param string $entryId Entry id that should be removed
|
||||
* @param string $language (optional) Only remove entries of the given language
|
||||
* @return \FML\Elements\Dico|static
|
||||
* @return static
|
||||
*/
|
||||
public function removeEntry($entryId, $language = null) {
|
||||
$entryId = (string)$entryId;
|
||||
@ -219,7 +219,7 @@ class Dico {
|
||||
*
|
||||
* @param string $language Language which entries should be removed
|
||||
* @param string $entryId (optional) Only remove the given entry id
|
||||
* @return \FML\Elements\Dico|static
|
||||
* @return static
|
||||
*/
|
||||
public function removeLanguage($language, $entryId = null) {
|
||||
$language = (string)$language;
|
||||
@ -237,7 +237,7 @@ class Dico {
|
||||
/**
|
||||
* Remove all entries from the Dictionary
|
||||
*
|
||||
* @return \FML\Elements\Dico|static
|
||||
* @return static
|
||||
*/
|
||||
public function removeEntries() {
|
||||
$this->entries = array();
|
||||
|
@ -29,7 +29,7 @@ class Format implements BgColorable, Renderable, Styleable, TextFormatable {
|
||||
/**
|
||||
* Create a new Format Element
|
||||
*
|
||||
* @return \FML\Elements\Format|static
|
||||
* @return static
|
||||
*/
|
||||
public static function create() {
|
||||
return new static();
|
||||
@ -84,7 +84,7 @@ class Format implements BgColorable, Renderable, Styleable, TextFormatable {
|
||||
}
|
||||
|
||||
/**
|
||||
* @see \FML\Renderable::render()
|
||||
* @see \FML\Types\Renderable::render()
|
||||
*/
|
||||
public function render(\DOMDocument $domDocument) {
|
||||
$formatXmlElement = $domDocument->createElement($this->tagName);
|
||||
|
@ -28,7 +28,7 @@ class FrameModel implements Container, Renderable {
|
||||
* Set Model id
|
||||
*
|
||||
* @param string $modelId Model id
|
||||
* @return \FML\Elements\FrameModel|static
|
||||
* @return static
|
||||
*/
|
||||
public function setId($modelId) {
|
||||
$this->modelId = (string)$modelId;
|
||||
@ -51,7 +51,7 @@ class FrameModel implements Container, Renderable {
|
||||
*/
|
||||
public function checkId() {
|
||||
if (!$this->modelId) {
|
||||
$this->setId(new UniqueID());
|
||||
$this->setId(UniqueID::create());
|
||||
}
|
||||
return $this;
|
||||
}
|
||||
|
@ -22,7 +22,7 @@ class Including implements Renderable {
|
||||
* Create a new Include object
|
||||
*
|
||||
* @param string $url (optional) Include url
|
||||
* @return \FML\Elements\Including|static
|
||||
* @return static
|
||||
*/
|
||||
public static function create($url = null) {
|
||||
return new static($url);
|
||||
@ -43,7 +43,7 @@ class Including implements Renderable {
|
||||
* Set url
|
||||
*
|
||||
* @param string $url Include url
|
||||
* @return \FML\Elements\Including|static
|
||||
* @return static
|
||||
*/
|
||||
public function setUrl($url) {
|
||||
$this->url = (string)$url;
|
||||
@ -51,7 +51,7 @@ class Including implements Renderable {
|
||||
}
|
||||
|
||||
/**
|
||||
* @see \FML\Renderable::render()
|
||||
* @see \FML\Types\Renderable::render()
|
||||
*/
|
||||
public function render(\DOMDocument $domDocument) {
|
||||
$xmlElement = $domDocument->createElement($this->tagName);
|
||||
|
@ -22,7 +22,7 @@ class Music implements Renderable {
|
||||
* Create a new Music object
|
||||
*
|
||||
* @param string $data (optional) Media url
|
||||
* @return \FML\Elements\Music|static
|
||||
* @return static
|
||||
*/
|
||||
public static function create($data = null) {
|
||||
return new static($data);
|
||||
@ -43,7 +43,7 @@ class Music implements Renderable {
|
||||
* Set data url
|
||||
*
|
||||
* @param string $data Data url
|
||||
* @return \FML\Elements\Music|static
|
||||
* @return static
|
||||
*/
|
||||
public function setData($data) {
|
||||
$this->data = (string)$data;
|
||||
@ -51,7 +51,7 @@ class Music implements Renderable {
|
||||
}
|
||||
|
||||
/**
|
||||
* @see \FML\Renderable::render()
|
||||
* @see \FML\Types\Renderable::render()
|
||||
*/
|
||||
public function render(\DOMDocument $domDocument) {
|
||||
$xmlElement = $domDocument->createElement($this->tagName);
|
||||
|
@ -22,7 +22,7 @@ class SimpleScript implements Renderable {
|
||||
* Create a new SimpleScript object
|
||||
*
|
||||
* @param string $text (optional) Script text
|
||||
* @return \FML\Elements\SimpleScript|static
|
||||
* @return static
|
||||
*/
|
||||
public static function create($text = null) {
|
||||
return new static($text);
|
||||
@ -43,7 +43,7 @@ class SimpleScript implements Renderable {
|
||||
* Set script text
|
||||
*
|
||||
* @param string $text Complete script text
|
||||
* @return \FML\Script\Script|static
|
||||
* @return static
|
||||
*/
|
||||
public function setText($text) {
|
||||
$this->text = (string)$text;
|
||||
|
Reference in New Issue
Block a user