huge fml update
This commit is contained in:
@ -14,6 +14,17 @@ class AddBuddy implements Element {
|
||||
protected $tagName = 'add_buddy';
|
||||
protected $login = '';
|
||||
|
||||
/**
|
||||
* Construct a new AddBuddy Element
|
||||
*
|
||||
* @param string $login (optional) Buddy Login
|
||||
* @return \FML\ManiaCode\AddBuddy
|
||||
*/
|
||||
public static function create($login = null) {
|
||||
$addBuddy = new AddBuddy($login);
|
||||
return $addBuddy;
|
||||
}
|
||||
|
||||
/**
|
||||
* Construct a new AddBuddy Element
|
||||
*
|
||||
|
@ -16,6 +16,17 @@ class AddFavorite implements Element {
|
||||
protected $ip = null;
|
||||
protected $port = null;
|
||||
|
||||
/**
|
||||
* Construct a new AddFavorite Element
|
||||
*
|
||||
* @param string $login (optional) Server Login
|
||||
* @return \FML\ManiaCode\AddFavorite
|
||||
*/
|
||||
public static function create($login = null) {
|
||||
$addFavorite = new AddFavorite($login);
|
||||
return $addFavorite;
|
||||
}
|
||||
|
||||
/**
|
||||
* Construct a new AddFavorite Element
|
||||
*
|
||||
|
@ -3,7 +3,7 @@
|
||||
namespace FML\ManiaCode;
|
||||
|
||||
/**
|
||||
* ManiaCode Element getting a Skin
|
||||
* ManiaCode Element downloading a Skin
|
||||
*
|
||||
* @author steeffeen
|
||||
*/
|
||||
@ -16,6 +16,19 @@ class GetSkin implements Element {
|
||||
protected $file = '';
|
||||
protected $url = '';
|
||||
|
||||
/**
|
||||
* Create a new GetSkin Element
|
||||
*
|
||||
* @param string $name (optional) Skin Name
|
||||
* @param string $file (optional) Skin File
|
||||
* @param string $url (optional) Skin Url
|
||||
* @return \FML\ManiaCode\GetSkin
|
||||
*/
|
||||
public static function create($name = null, $file = null, $url = null) {
|
||||
$getSkin = new GetSkin($name, $file, $url);
|
||||
return $getSkin;
|
||||
}
|
||||
|
||||
/**
|
||||
* Construct a new GetSkin Element
|
||||
*
|
||||
|
@ -14,6 +14,17 @@ class Go_To implements Element {
|
||||
protected $tagName = 'goto';
|
||||
protected $link = '';
|
||||
|
||||
/**
|
||||
* Create a new Go_To Element
|
||||
*
|
||||
* @param string $link (optional) Goto Link
|
||||
* @return \FML\ManiaCode\Go_To
|
||||
*/
|
||||
public static function create($link = null) {
|
||||
$goTo = new Go_To($link);
|
||||
return $goTo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Construct a new Go_To Element
|
||||
*
|
||||
|
@ -15,6 +15,18 @@ class InstallMap implements Element {
|
||||
protected $name = '';
|
||||
protected $url = '';
|
||||
|
||||
/**
|
||||
* Create a new InstallMap Element
|
||||
*
|
||||
* @param string $name (optional) Map Name
|
||||
* @param string $url (optional) Map Url
|
||||
* @return \FML\ManiaCode\InstallMap
|
||||
*/
|
||||
public static function create($name = null, $url = null) {
|
||||
$installMap = new InstallMap($name, $url);
|
||||
return $installMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* Construct a new InstallMap Element
|
||||
*
|
||||
|
@ -16,6 +16,19 @@ class InstallPack implements Element {
|
||||
protected $file = '';
|
||||
protected $url = '';
|
||||
|
||||
/**
|
||||
* Create a new InstallPack Element
|
||||
*
|
||||
* @param string $name (optional) Pack Name
|
||||
* @param string $file (optional) Pack File
|
||||
* @param string $url (optional) Pack Url
|
||||
* @return \FML\ManiaCode\InstallPack
|
||||
*/
|
||||
public static function create($name = null, $file = null, $url = null) {
|
||||
$installPack = new InstallPack($name, $file, $url);
|
||||
return $installPack;
|
||||
}
|
||||
|
||||
/**
|
||||
* Construct a new InstallPack Element
|
||||
*
|
||||
@ -40,7 +53,7 @@ class InstallPack implements Element {
|
||||
*
|
||||
* @param string $name Pack Name
|
||||
* @return \FML\ManiaCode\InstallPack
|
||||
*/
|
||||
*/
|
||||
public function setName($name) {
|
||||
$this->name = (string) $name;
|
||||
return $this;
|
||||
|
@ -15,6 +15,18 @@ class InstallReplay implements Element {
|
||||
protected $name = '';
|
||||
protected $url = '';
|
||||
|
||||
/**
|
||||
* Create a new InstallReplay Element
|
||||
*
|
||||
* @param string $name (optional) Replay Name
|
||||
* @param string $url (optional) Replay Url
|
||||
* @return \FML\ManiaCode\InstallReplay
|
||||
*/
|
||||
public static function create($name = null, $url = null) {
|
||||
$installReplay = new InstallReplay($name, $url);
|
||||
return $installReplay;
|
||||
}
|
||||
|
||||
/**
|
||||
* Construct a new InstallReplay Element
|
||||
*
|
||||
|
@ -16,6 +16,19 @@ class InstallScript implements Element {
|
||||
protected $file = '';
|
||||
protected $url = '';
|
||||
|
||||
/**
|
||||
* Create a new InstallScript Element
|
||||
*
|
||||
* @param string $name (optional) Script Name
|
||||
* @param string $file (optional) Script File
|
||||
* @param string $url (optional) Script Url
|
||||
* @return \FML\ManiaCode\InstallScript
|
||||
*/
|
||||
public static function create($name = null, $file = null, $url = null) {
|
||||
$installScript = new InstallScript($name, $file, $url);
|
||||
return $installScript;
|
||||
}
|
||||
|
||||
/**
|
||||
* Construct a new InstallScript Element
|
||||
*
|
||||
|
@ -16,6 +16,19 @@ class InstallSkin implements Element {
|
||||
protected $file = '';
|
||||
protected $url = '';
|
||||
|
||||
/**
|
||||
* Create a new InstallSkin Element
|
||||
*
|
||||
* @param string $name (optional) Skin Name
|
||||
* @param string $file (optional) Skin File
|
||||
* @param string $url (optional) Skin Url
|
||||
* @return \FML\ManiaCode\InstallSkin
|
||||
*/
|
||||
public static function create($name = null, $file = null, $url = null) {
|
||||
$installSkin = new InstallSkin($name, $file, $url);
|
||||
return $installSkin;
|
||||
}
|
||||
|
||||
/**
|
||||
* Construct a new InstallSkin Element
|
||||
*
|
||||
|
@ -16,6 +16,17 @@ class JoinServer implements Element {
|
||||
protected $ip = null;
|
||||
protected $port = null;
|
||||
|
||||
/**
|
||||
* Create a new JoinServer Element
|
||||
*
|
||||
* @param string $login (optional) Server Login
|
||||
* @return \FML\ManiaCode\JoinServer
|
||||
*/
|
||||
public static function create($login = null) {
|
||||
$joinServer = new JoinServer($login);
|
||||
return $joinServer;
|
||||
}
|
||||
|
||||
/**
|
||||
* Construct a new JoinServer Element
|
||||
*
|
||||
|
@ -15,6 +15,18 @@ class PlayMap implements Element {
|
||||
protected $name = '';
|
||||
protected $url = '';
|
||||
|
||||
/**
|
||||
* Create a new PlayMap Element
|
||||
*
|
||||
* @param string $name (optional) Map Name
|
||||
* @param string $url (optional) Map Url
|
||||
* @return \FML\ManiaCode\PlayMap
|
||||
*/
|
||||
public static function create($name = null, $url = null) {
|
||||
$playMap = new PlayMap($name, $url);
|
||||
return $playMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* Construct a new PlayMap Element
|
||||
*
|
||||
|
@ -15,6 +15,18 @@ class PlayReplay implements Element {
|
||||
protected $name = '';
|
||||
protected $url = '';
|
||||
|
||||
/**
|
||||
* Create a new PlayReplay Element
|
||||
*
|
||||
* @param string $name (optional) Replay Name
|
||||
* @param string $url (optional) Replay Url
|
||||
* @return \FML\ManiaCode\PlayReplay
|
||||
*/
|
||||
public static function create($name = null, $url = null) {
|
||||
$playReplay = new PlayReplay($name, $url);
|
||||
return $playReplay;
|
||||
}
|
||||
|
||||
/**
|
||||
* Construct a new PlayReplay Element
|
||||
*
|
||||
|
@ -14,6 +14,17 @@ class ShowMessage implements Element {
|
||||
protected $tagName = 'show_message';
|
||||
protected $message = '';
|
||||
|
||||
/**
|
||||
* Create a new ShowMessage Element
|
||||
*
|
||||
* @param string $message (optional) Message Text
|
||||
* @return \FML\ManiaCode\ShowMessage
|
||||
*/
|
||||
public static function create($message = null) {
|
||||
$showMessage = new ShowMessage($message);
|
||||
return $showMessage;
|
||||
}
|
||||
|
||||
/**
|
||||
* Construct a new ShowMessage Element
|
||||
*
|
||||
|
@ -15,6 +15,18 @@ class ViewReplay implements Element {
|
||||
protected $name = '';
|
||||
protected $url = '';
|
||||
|
||||
/**
|
||||
* Create a new ViewReplay Element
|
||||
*
|
||||
* @param string $name (optional) Replay Name
|
||||
* @param string $url (optional) Replay Url
|
||||
* @return \FML\ManiaCode\ViewReplay
|
||||
*/
|
||||
public static function create($name = null, $url = null) {
|
||||
$viewReplay = new ViewReplay($name, $url);
|
||||
return $viewReplay;
|
||||
}
|
||||
|
||||
/**
|
||||
* Construct a new ViewReplay Element
|
||||
*
|
||||
|
Reference in New Issue
Block a user