25 lines
360 B
PHP
25 lines
360 B
PHP
![]() |
<?php
|
||
|
|
||
|
//Init plugin directory
|
||
|
if (!defined('RCUBE_PLUGINS_DIR')) {
|
||
|
define('RCUBE_PLUGINS_DIR', RCUBE_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;
|
||
|
}
|
||
|
}
|