2013-11-28 02:04:06 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace FML\Types;
|
|
|
|
|
|
|
|
/**
|
2014-01-12 00:51:46 +01:00
|
|
|
* Interface for Elements that support the Action Attribute
|
2013-11-28 02:04:06 +01:00
|
|
|
*
|
|
|
|
* @author steeffeen
|
2014-04-13 18:21:40 +02:00
|
|
|
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
|
|
|
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
2013-11-28 02:04:06 +01:00
|
|
|
*/
|
|
|
|
interface Actionable {
|
2014-01-21 20:30:40 +01:00
|
|
|
/*
|
2014-01-12 00:51:46 +01:00
|
|
|
* Constants
|
|
|
|
*/
|
2014-01-21 20:30:40 +01:00
|
|
|
const ACTION_0 = '0';
|
|
|
|
const ACTION_BACK = 'back';
|
|
|
|
const ACTION_ENTER = 'enter';
|
|
|
|
const ACTION_HOME = 'home';
|
|
|
|
const ACTION_MENU_SOLO = 'menu_solo';
|
|
|
|
const ACTION_MENU_COMPETITIONS = 'menu_competitions';
|
|
|
|
const ACTION_MENU_LOCAL = 'menu_local';
|
|
|
|
const ACTION_MENU_INTERNET = 'menu_internet';
|
|
|
|
const ACTION_MENU_EDITORS = 'menu_editors';
|
|
|
|
const ACTION_MENU_PROFILE = 'menu_profile';
|
|
|
|
const ACTION_QUIT = 'quit';
|
|
|
|
const ACTION_QUITSERVER = 'maniaplanet:quitserver';
|
|
|
|
const ACTION_SAVEREPLAY = 'maniaplanet:savereplay';
|
|
|
|
const ACTION_TOGGLESPEC = 'maniaplanet:togglespec';
|
2014-01-12 00:51:46 +01:00
|
|
|
const ACTIONKEY_F5 = 1;
|
|
|
|
const ACTIONKEY_F6 = 2;
|
|
|
|
const ACTIONKEY_F7 = 3;
|
|
|
|
const ACTIONKEY_F8 = 4;
|
2013-11-28 02:04:06 +01:00
|
|
|
|
|
|
|
/**
|
2014-01-12 00:51:46 +01:00
|
|
|
* Set Action
|
2013-11-28 02:04:06 +01:00
|
|
|
*
|
2014-01-12 00:51:46 +01:00
|
|
|
* @param string $action Action Name
|
2014-01-21 20:30:40 +01:00
|
|
|
* @return \FML\Types\Actionable
|
2013-11-28 02:04:06 +01:00
|
|
|
*/
|
|
|
|
public function setAction($action);
|
2014-01-12 00:51:46 +01:00
|
|
|
|
2014-01-21 20:30:40 +01:00
|
|
|
/**
|
|
|
|
* Get the assigned Action
|
|
|
|
*
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function getAction();
|
|
|
|
|
2014-01-12 00:51:46 +01:00
|
|
|
/**
|
|
|
|
* Set Action Key
|
|
|
|
*
|
|
|
|
* @param int $actionKey Action Key Number
|
2014-01-21 20:30:40 +01:00
|
|
|
* @return \FML\Types\Actionable
|
2014-01-12 00:51:46 +01:00
|
|
|
*/
|
|
|
|
public function setActionKey($actionKey);
|
2013-11-28 02:04:06 +01:00
|
|
|
}
|