public static function get_instance() { if (is_null(self::$instance)) { self::$instance = new self(); } return self::$instance; }
/** * * @return nc_dashboard */ public function dashboard() { global $ADMIN_FOLDER; require_once $ADMIN_FOLDER . 'dashboard/nc_dashboard.class.php'; return nc_dashboard::get_instance(); }