2013-11-28 02:04:06 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace FML\Types;
|
|
|
|
|
|
|
|
/**
|
2014-06-21 03:18:21 +02:00
|
|
|
* Interface for Elements that support the action attribute
|
2013-11-28 02:04:06 +01:00
|
|
|
*
|
2014-06-21 03:18:21 +02:00
|
|
|
* @author steeffeen
|
2017-03-25 18:40:15 +01:00
|
|
|
* @copyright FancyManiaLinks Copyright © 2017 Steffen Schröder
|
2014-06-21 03:18:21 +02:00
|
|
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
2013-11-28 02:04:06 +01:00
|
|
|
*/
|
2017-03-25 18:40:15 +01:00
|
|
|
interface Actionable
|
|
|
|
{
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Constants
|
|
|
|
*/
|
|
|
|
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';
|
|
|
|
const ACTIONKEY_F5 = 1;
|
|
|
|
const ACTIONKEY_F6 = 2;
|
|
|
|
const ACTIONKEY_F7 = 3;
|
|
|
|
const ACTIONKEY_F8 = 4;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the action
|
|
|
|
*
|
|
|
|
* @api
|
|
|
|
* @param string $action Action name
|
|
|
|
* @return static
|
|
|
|
*/
|
|
|
|
public function setAction($action);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the action
|
|
|
|
*
|
|
|
|
* @api
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function getAction();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the action key
|
|
|
|
*
|
|
|
|
* @api
|
|
|
|
* @return int
|
|
|
|
*/
|
|
|
|
public function getActionKey();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the action key
|
|
|
|
*
|
|
|
|
* @api
|
|
|
|
* @param int $actionKey Action key
|
|
|
|
* @return static
|
|
|
|
*/
|
|
|
|
public function setActionKey($actionKey);
|
|
|
|
|
2013-11-28 02:04:06 +01:00
|
|
|
}
|