2013-11-25 00:02:07 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace FML\Types;
|
|
|
|
|
|
|
|
/**
|
2014-06-21 03:18:21 +02:00
|
|
|
* Interface for Elements with media attributes
|
2013-11-25 00:02:07 +01:00
|
|
|
*
|
2014-05-20 15:44:45 +02:00
|
|
|
* @author steeffeen <mail@steeffeen.com>
|
2017-03-25 18:40:15 +01:00
|
|
|
* @copyright FancyManiaLinks Copyright © 2017 Steffen Schröder
|
2014-05-18 19:45:50 +02:00
|
|
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
2013-11-25 00:02:07 +01:00
|
|
|
*/
|
2017-03-25 18:40:15 +01:00
|
|
|
interface Playable
|
|
|
|
{
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the data url
|
|
|
|
*
|
|
|
|
* @api
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function getData();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the data url
|
|
|
|
*
|
|
|
|
* @api
|
|
|
|
* @param string $data Data url
|
|
|
|
* @return static
|
|
|
|
*/
|
|
|
|
public function setData($data);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the data id to use from Dico
|
|
|
|
*
|
|
|
|
* @api
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function getDataId();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the data id to use from Dico
|
|
|
|
*
|
|
|
|
* @api
|
|
|
|
* @param string $dataId Data id
|
|
|
|
* @return static
|
|
|
|
*/
|
|
|
|
public function setDataId($dataId);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get play
|
|
|
|
*
|
|
|
|
* @api
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function getPlay();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set play
|
|
|
|
*
|
|
|
|
* @api
|
|
|
|
* @param bool $play If the Control should start playing automatically
|
|
|
|
* @return static
|
|
|
|
*/
|
|
|
|
public function setPlay($play);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get looping
|
|
|
|
*
|
|
|
|
* @api
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function getLooping();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set looping
|
|
|
|
*
|
|
|
|
* @api
|
|
|
|
* @param bool $looping If the Control should play looping
|
|
|
|
* @return static
|
|
|
|
*/
|
|
|
|
public function setLooping($looping);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get music
|
|
|
|
*
|
|
|
|
* @api
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function getMusic();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set music
|
|
|
|
*
|
|
|
|
* @api
|
|
|
|
* @param bool $music If the Control represents background music
|
|
|
|
* @return static
|
|
|
|
*/
|
|
|
|
public function setMusic($music);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the volume
|
|
|
|
*
|
|
|
|
* @api
|
|
|
|
* @return float
|
|
|
|
*/
|
|
|
|
public function getVolume();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the volume
|
|
|
|
*
|
|
|
|
* @api
|
|
|
|
* @param float $volume Media volume
|
|
|
|
* @return static
|
|
|
|
*/
|
|
|
|
public function setVolume($volume);
|
|
|
|
|
2013-11-25 00:02:07 +01:00
|
|
|
}
|