- deleted test plugin

- added FML Library
This commit is contained in:
Steffen Schröder
2013-11-25 00:02:07 +01:00
parent 33001ef573
commit 835744b0e6
62 changed files with 2992 additions and 22 deletions

View File

@ -0,0 +1,20 @@
<?php
namespace FML\Types;
/**
* Interface for elements with background color attribute
*
* @author steeffeen
*/
interface BgColorable {
/**
* Set background color
*
* @param string $bgColor
*/
public function setBgColor($bgColor);
}
?>

View File

@ -0,0 +1,25 @@
<?php
namespace FML\Types;
/**
* Interface for elements being able to contain other elements
*
* @author steeffeen
*/
interface Container {
/**
* Add a new child
*
* @param Renderable $child
*/
public function add(Renderable $child);
/**
* Remove all children
*/
public function removeChildren();
}
?>

View File

@ -0,0 +1,27 @@
<?php
namespace FML\Types;
/**
* Interface for elements with url attributes
*
* @author steeffeen
*/
interface Linkable {
/**
* Set url
*
* @param string $url
*/
public function setUrl($url);
/**
* Set manialink
*
* @param string $manialink
*/
public function setManialink($manialink);
}
?>

View File

@ -0,0 +1,20 @@
<?php
namespace FML\Types;
/**
* Interface for elements with autonewline attribute
*
* @author steeffeen
*/
interface NewLineable {
/**
* Set auto new line
*
* @param bool $autoNewLine
*/
public function setAutoNewLine($autoNewLine);
}
?>

View File

@ -0,0 +1,56 @@
<?php
namespace FML\Types;
/**
* Interface for elements with media attributes
*
* @author steeffeen
*/
interface Playable {
/**
* Protected properties
*/
protected $data = '';
protected $play = 0;
protected $looping = 0;
protected $music = 1;
protected $volume = 1.;
/**
* Set data
*
* @param string $data
*/
public function setData($data);
/**
* Set play
*
* @param bool $play
*/
public function setPlay($play);
/**
* Set looping
*
* @param bool $looping
*/
public function setLooping($looping);
/**
* Set music
*
* @param bool $music
*/
public function setMusic($music);
/**
* Set volume
*
* @param real $volume
*/
public function setVolume($volume);
}
?>

View File

@ -0,0 +1,21 @@
<?php
namespace FML\Types;
/**
* Interface for renderable elements
*
* @author steeffeen
*/
interface Renderable {
/**
* Render the xml element
*
* @param \DOMDocument $domDocument
* @return \DOMElement
*/
public function render(\DOMDocument $domDocument);
}
?>

View File

@ -0,0 +1,20 @@
<?php
namespace FML\Types;
/**
* Interface for elements with scriptevents attribute
*
* @author steeffeen
*/
interface Scriptable {
/**
* Set scriptevents
*
* @param bool $style
*/
public function setScriptEvents($scriptEvents);
}
?>

View File

@ -0,0 +1,20 @@
<?php
namespace FML\Types;
/**
* Interface for elements with style attribute
*
* @author steeffeen
*/
interface Styleable {
/**
* Set style
*
* @param string $style
*/
public function setStyle($style);
}
?>

View File

@ -0,0 +1,28 @@
<?php
namespace FML\Types;
/**
* Interface for elements with substyle attribute
*
* @author steeffeen
*/
interface SubStyleable {
/**
* Set substyle
*
* @param string $subStyle
*/
public function setSubStyle($subStyle);
/**
* Set style and substyle
*
* @param string $style
* @param string $subStyle
*/
public function setStyles($style, $subStyle);
}
?>

View File

@ -0,0 +1,41 @@
<?php
namespace FML\Types;
/**
* Interface for elements with formatable text
*
* @author steeffeen
*/
interface TextFormatable {
/**
* Set text size
*
* @param int $textSize
*/
public function setTextSize($textSize);
/**
* Set text color
*
* @param string $textColor
*/
public function setTextColor($textColor);
/**
* Set area color
*
* @param string $areaColor
*/
public function setAreaColor($areaColor);
/**
* Set area focus color
*
* @param string $areaFocusColor
*/
public function setAreaFocusColor($areaFocusColor);
}
?>