- deleted test plugin
- added FML Library
This commit is contained in:
20
application/FML/Types/BgColorable.php
Normal file
20
application/FML/Types/BgColorable.php
Normal 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);
|
||||
}
|
||||
|
||||
?>
|
25
application/FML/Types/Container.php
Normal file
25
application/FML/Types/Container.php
Normal 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();
|
||||
}
|
||||
|
||||
?>
|
27
application/FML/Types/Linkable.php
Normal file
27
application/FML/Types/Linkable.php
Normal 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);
|
||||
}
|
||||
|
||||
?>
|
20
application/FML/Types/NewLineable.php
Normal file
20
application/FML/Types/NewLineable.php
Normal 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);
|
||||
}
|
||||
|
||||
?>
|
56
application/FML/Types/Playable.php
Normal file
56
application/FML/Types/Playable.php
Normal 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);
|
||||
}
|
||||
|
||||
?>
|
21
application/FML/Types/Renderable.php
Normal file
21
application/FML/Types/Renderable.php
Normal 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);
|
||||
}
|
||||
|
||||
?>
|
20
application/FML/Types/Scriptable.php
Normal file
20
application/FML/Types/Scriptable.php
Normal 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);
|
||||
}
|
||||
|
||||
?>
|
20
application/FML/Types/Styleable.php
Normal file
20
application/FML/Types/Styleable.php
Normal 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);
|
||||
}
|
||||
|
||||
?>
|
28
application/FML/Types/SubStyleable.php
Normal file
28
application/FML/Types/SubStyleable.php
Normal 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);
|
||||
}
|
||||
|
||||
?>
|
41
application/FML/Types/TextFormatable.php
Normal file
41
application/FML/Types/TextFormatable.php
Normal 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);
|
||||
}
|
||||
|
||||
?>
|
Reference in New Issue
Block a user