public function LoadPlugins() { $dirs = GetDirsInDir($this->usersdir . 'plugin/'); foreach ($dirs as $id) { $app = new App(); if ($app->LoadInfoByXml('plugin', $id) == true) { $this->plugins[] = $app; } } }
/** * 载入插件列表 */ public function LoadPlugins() { $allplugins = array(); $dirs = GetDirsInDir($this->usersdir . 'plugin/'); natcasesort($dirs); foreach ($dirs as $id) { $app = new App(); if ($app->LoadInfoByXml('plugin', $id) == true) { $allplugins[] = $app; } } return $allplugins; }