TrackManiaControl/application/core/Plugins/Plugin.php

44 lines
718 B
PHP
Raw Normal View History

2013-11-09 11:06:04 +01:00
<?php
namespace ManiaControl\Plugins;
use ManiaControl\ManiaControl;
2013-11-09 11:06:04 +01:00
/**
* Plugin parent class
2013-11-09 11:06:04 +01:00
*
* @author steeffeen & kremsy
2013-11-09 11:06:04 +01:00
*/
abstract class Plugin {
/**
* Plugin Metadata
*/
public static $name = 'undefined';
public static $version = 'undefined';
public static $author = 'undefined';
public static $description = 'undefined';
2013-11-09 12:15:02 +01:00
/**
* Protected properties
*/
protected $maniaControl = null;
2013-11-09 12:15:02 +01:00
/**
* Create a new plugin
2013-11-09 12:15:02 +01:00
*
* @param \ManiaControl\ManiaControl $maniaControl
2013-11-09 12:15:02 +01:00
*/
public abstract function __construct(ManiaControl $maniaControl);
2013-11-09 12:15:02 +01:00
/**
* Get class name as string
*
* @return string
*/
public static final function getClass() {
return __CLASS__;
}
}
2013-11-09 19:26:57 +01:00
?>