summaryrefslogtreecommitdiff
path: root/server/core/Plugin_Api.php
blob: c2a90412d06b1afa97efa4d340dc22948250b31e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php

//Init plugin directory
if (!defined('PLUGINS_DIR')) {
    define('PLUGINS_DIR', INSTALL_PATH . 'plugins/');
}

class plugin_api{

	static protected $instance;

	protected function __construct(){

	}

	static function getInstance(){
		
		if(!self::$instance){
			self::$instance = new plugin_api();
		}

		return self::$instance;
	}
}