TrackManiaControl/application/core/Plugins/Plugin.php
Steffen Schröder 6ce66e1640 - fixed join/leave messages
- improved time formatter
- bugfix setting manager
- donation plugin
2013-11-12 19:33:25 +01:00

77 lines
1.1 KiB
PHP

<?php
namespace ManiaControl\Plugins;
use ManiaControl\ManiaControl;
/**
* Plugin parent class
*
* @author steeffeen & kremsy
*/
abstract class Plugin {
/**
* Private properties
*/
protected $maniaControl = null;
protected $name = 'undefined';
protected $version = 'undefined';
protected $author = 'undefined';
protected $description = 'undefined';
/**
* Create a new plugin
*
* @param \ManiaControl\ManiaControl $maniaControl
*/
public abstract function __construct(ManiaControl $maniaControl);
/**
* Get class name as string
*
* @return string
*/
public static function getClass() {
return __CLASS__;
}
/**
* Get plugin author
*
* @return string
*/
public function getAuthor() {
return $this->author;
}
/**
* Get plugin version
*
* @return float
*/
public function getVersion() {
return $this->version;
}
/**
* Get plugin name
*
* @return string
*/
public function getName() {
return $this->name;
}
/**
* Get plugin description
*
* @return string
*/
public function getDescription() {
return $this->description;
}
}
?>