2016-01-25 23:36:23 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
//Init plugin directory
|
2016-01-30 11:41:45 +01:00
|
|
|
/*if (!defined('PLUGINS_DIR')) {
|
2016-01-27 13:13:19 +01:00
|
|
|
define('PLUGINS_DIR', INSTALL_PATH . 'plugins/');
|
2016-01-30 11:41:45 +01:00
|
|
|
}*/
|
2016-01-25 23:36:23 +01:00
|
|
|
|
|
|
|
class plugin_api{
|
|
|
|
|
|
|
|
static protected $instance;
|
|
|
|
|
|
|
|
protected function __construct(){
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
static function getInstance(){
|
|
|
|
|
|
|
|
if(!self::$instance){
|
|
|
|
self::$instance = new plugin_api();
|
|
|
|
}
|
|
|
|
|
|
|
|
return self::$instance;
|
|
|
|
}
|
|
|
|
}
|