library/core/class.pluginmanager.php
public function IncludePlugins($EnabledPlugins = NULL) {

      // Include all of the plugins.
      if (is_null($EnabledPlugins))
         $EnabledPlugins = $this->EnabledPlugins();

      $PluginManager = &$this;
      // Get a list of files to include.
      foreach ($EnabledPlugins as $PluginName => $Trash) {
         $PluginInfo = $this->GetPluginInfo($PluginName);

         $ClassName = GetValue('ClassName', $PluginInfo, FALSE);
         $ClassFile = GetValue('RealFile', $PluginInfo, FALSE);

         if ($ClassName !== FALSE && !class_exists($ClassName, FALSE))
            if (file_exists($ClassFile))
               include_once($ClassFile);

      }
   }
public function IncludePlugins($EnabledPlugins = NULL) {

      // Include all of the plugins.
      if (is_null($EnabledPlugins))
         $EnabledPlugins = $this->EnabledPlugins();

      $PluginManager = &$this;
      // Get a list of files to include.
      foreach ($EnabledPlugins as $PluginName => $Trash) {
         $PluginInfo = $this->GetPluginInfo($PluginName);

         $ClassName = GetValue('ClassName', $PluginInfo, FALSE);
         $ClassFile = GetValue('RealFile', $PluginInfo, FALSE);

         if ($ClassName !== FALSE && !class_exists($ClassName, FALSE))
            if (file_exists($ClassFile))
               include_once($ClassFile);

      }
   }
public function IncludePlugins ( $ EnabledPlugins = NULL ) { // Include all of the plugins. if ( is_null ( $ EnabledPlugins ) ) $ EnabledPlugins = $ this -> EnabledPlugins ( ) ; $ PluginManager = & $ this ; // Get a list of files to include. foreach ( $ EnabledPlugins as $ PluginName => $ Trash ) { $ PluginInfo = $ this -> GetPluginInfo ( $ PluginName ) ; $ ClassName = GetValue ( 'ClassName' , $ PluginInfo , FALSE ) ; $ ClassFile = GetValue ( 'RealFile' , $ PluginInfo , FALSE ) ; if ( $ ClassName !== FALSE && ! class_exists ( $ ClassName , FALSE ) ) if ( file_exists ( $ ClassFile ) ) include_once ( $ ClassFile ) ; } }
Includes all of the plugin files for enabled plugins.

Files are included in from the roots of each plugin directory if they have the following names.
- default.php
- *plugin.php

@param array $EnabledPlugins An array of plugins that should be included.
If this argument is null then all enabled plugins will be included.
@return array The plugin info array for all included plugins.
Includes all of the plugin files for enabled plugins .