TrackManiaControl/application/core/Maniaplanet/DedicatedServer/Structures/ScriptInfo.php

37 lines
719 B
PHP
Raw Normal View History

2014-01-16 16:56:24 +01:00
<?php
/**
* ManiaPlanet dedicated server Xml-RPC client
*
* @license http://www.gnu.org/licenses/lgpl.html LGPL License 3
*/
namespace Maniaplanet\DedicatedServer\Structures;
class ScriptInfo extends AbstractStructure
{
public $name;
public $compatibleMapTypes;
public $description;
public $version;
public $paramDescs = array();
2014-01-20 09:24:17 +01:00
public $commandDescs = array();
2014-01-16 16:56:24 +01:00
static public function fromArray($array)
{
$object = parent::fromArray($array);
if($object->paramDescs)
{
$object->paramDescs = ScriptSettings::fromArrayOfArray($object->paramDescs);
}
2014-01-20 09:24:17 +01:00
if($object->commandDescs)
{
$object->commandDescs = Command::fromArrayOfArray($object->commandDescs);
}
2014-01-16 16:56:24 +01:00
return $object;
}
}
?>