changed names, some other minor things

This commit is contained in:
kremsy
2013-11-09 13:29:18 +01:00
parent 4a0ed1836d
commit 99a754034a
19 changed files with 156 additions and 5171 deletions

View File

@ -14,20 +14,21 @@ namespace ManiaControl;
/**
* Private properties
*/
private $mControl;
private $mc;
private $version;
private $author;
private $updateUrl;
private $name;
private $active;
public function __construct($mControl, $name, $version = 0, $author = '', $updateUrl = ''){
$this->mControl = $mControl;
public function __construct($mc, $name, $version = 0, $author = '', $updateUrl = ''){
$this->mc = $mc;
$this->name = $name;
$this->version = $version;
$this->author = $author;
$this->updateUrl = $updateUrl;
$this->mc->pluginHandler->registerPlugin($this);
}
/**
@ -37,13 +38,37 @@ namespace ManiaControl;
* @return array with manialink Ids
*/
public function reserveManialinkIds($count){
return $this->mControl->manialinkIdHandler->reserveManialikIds($count);
return $this->mc->manialinkIdHandler->reserveManialikIds($count);
}
public function checkUpdate(){
}
/**
* Enables the Plugin
*/
public function enablePlugin()
{
$this->active = true;
}
/**
* Disable the Plugin
*/
public function disablePlugin()
{
$this->active = true;
}
/**
* @return mixed
*/
public function isActive()
{
return $this->active;
}
/**
* @param mixed $author
*/