get_plugins

    public function get_plugins()
    {
        return $this->_api_call(__FUNCTION__);
    }
    public function get_plugins()
    {
        $folder = '';
        $suffix = '/';
        $libs = [];
        foreach ($this->get_globs($folder, $suffix) as $gname => $glob) {
            if (false === strpos($gname, '_plugins')) {
                continue;
            }
            if (substr($glob, -4) == '*/*/') {
                $glob = substr($glob, 0, -2);
            }
            foreach (glob($glob) as $path) {
                if ( ! is_dir($path)) {
                    continue;
                }
                $name = basename($path);
                $libs[$name] = $name;
            }
        }
        if (is_array($libs)) {
            ksort($libs);
        }
        return $libs;
    }
  •  admin
  •  admin_home
  •  admin_search
  •  api
  •  assets
  •  auth
  •  cache
  •  categories
  •  charts
  •  ckeditor
  •  comments
  •  common
  •  conf
  •  content
  •  dashboards
  •  db
  •  docs
  •  dynamic
  •  email
  •  ethereum
  •  fast_init
  •  form2
  •  geo
  •  home_page
  •  html
  •  htmx
  •  locale
  •  logs
  •  memcached
  •  notifications
  •  oauth
  •  payment
  •  pubsub
  •  queue
  •  rabbitmq
  •  redis
  •  rewrite
  •  search
  •  session
  •  shop
  •  site_map
  •  site_nav_bar
  •  sms
  •  ssh
  •  static_pages
  •  sys
  •  table2
  •  test
  •  tpl
  •  user