Ejemplo n.º 1
0
 public function LoadPlugins()
 {
     $dirs = GetDirsInDir($this->usersdir . 'plugin/');
     foreach ($dirs as $id) {
         $app = new App();
         if ($app->LoadInfoByXml('plugin', $id) == true) {
             $this->plugins[] = $app;
         }
     }
 }
Ejemplo n.º 2
0
 /**
  * 载入插件列表
  */
 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;
 }