added xmlrpc structures + removed/refactored double trigger code
This commit is contained in:
40
core/Callbacks/Structures/XmlRpc/CallbackHelpStructure.php
Normal file
40
core/Callbacks/Structures/XmlRpc/CallbackHelpStructure.php
Normal file
@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
namespace ManiaControl\Callbacks\Structures\XmlRpc;
|
||||
|
||||
use ManiaControl\ManiaControl;
|
||||
|
||||
/**
|
||||
* Structure Class for the CallbackHelp Structure Callback
|
||||
*
|
||||
* @api
|
||||
* @author ManiaControl Team <mail@maniacontrol.com>
|
||||
* @copyright 2014-2017 ManiaControl Team
|
||||
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||
*/
|
||||
class CallbackHelpStructure extends DocumentationStructure {
|
||||
private $callbackName;
|
||||
|
||||
/**
|
||||
* Construct a new Callbacks List Structure
|
||||
*
|
||||
* @param ManiaControl $maniaControl
|
||||
* @param array $data
|
||||
*/
|
||||
public function __construct(ManiaControl $maniaControl, $data) {
|
||||
parent::__construct($maniaControl, $data);
|
||||
|
||||
$this->callbackName = $this->getPlainJsonObject()->callback;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the Name of the Method
|
||||
*
|
||||
* @api
|
||||
* @return mixed
|
||||
*/
|
||||
public function getMethodName() {
|
||||
return $this->callbackName;
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user