improved map object

This commit is contained in:
kremsy 2013-11-10 19:31:17 +01:00
parent 8c9a1af65d
commit fec55fdcd4

View File

@ -2,13 +2,17 @@
namespace ManiaControl; namespace ManiaControl;
/**
* Map Object
*
* @author kremsy & steeffeen
*/
class map { class map {
public $id = 0; public $id = 0;
public $name = ''; public $name = '';
public $uid = 0; public $uid = 0;
public $filename = ''; public $filename = '';
public $author = '';
public $environment = ''; public $environment = '';
public $mood = ''; public $mood = '';
public $bronzetime; //format? public $bronzetime; //format?
@ -27,6 +31,7 @@ class map {
public $titleuid = 0; public $titleuid = 0;
// public $gbx; //needed? would be the whole gbx object // public $gbx; //needed? would be the whole gbx object
public $mx = null; public $mx = null;
public $authorLogin = '';
public $authorNick = ''; public $authorNick = '';
public $authorZone = ''; public $authorZone = '';
public $authorEInfo; //format? public $authorEInfo; //format?
@ -39,7 +44,7 @@ class map {
$this->name = stripNewlines($rpc_infos['Name']); $this->name = stripNewlines($rpc_infos['Name']);
$this->uid = $rpc_infos['UId']; $this->uid = $rpc_infos['UId'];
$this->filename = $rpc_infos['FileName']; $this->filename = $rpc_infos['FileName'];
$this->author = $rpc_infos['Author']; $this->authorLogin = $rpc_infos['Author'];
$this->environment = $rpc_infos['Environnement']; $this->environment = $rpc_infos['Environnement'];
$this->mood = $rpc_infos['Mood']; $this->mood = $rpc_infos['Mood'];
$this->bronzetime = $rpc_infos['BronzeTime']; $this->bronzetime = $rpc_infos['BronzeTime'];
@ -65,7 +70,6 @@ class map {
} catch (Exception $e){ } catch (Exception $e){
trigger_error($e->getMessage(), E_USER_WARNING); trigger_error($e->getMessage(), E_USER_WARNING);
} }
$this->authorNick = $mapFetcher->authorNick; $this->authorNick = $mapFetcher->authorNick;
$this->authorEInfo = $mapFetcher->authorEInfo; $this->authorEInfo = $mapFetcher->authorEInfo;
$this->authorZone = $mapFetcher->authorZone; $this->authorZone = $mapFetcher->authorZone;