TrackManiaControl/application/core/Libs/FML/Types/Playable.php

62 lines
1.2 KiB
PHP
Raw Normal View History

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