function loadModules(array $modules)
    {
        $modules = array_diff($modules, array_keys($this->_c__loadedModules));
        if ( empty($modules) )
            // Modules are loaded
            return $this;


        // Load Enabled Modules:
        foreach($modules as $im => $vm) {
            /* @see loadModule */
            if (is_string($im) && $vm)
                # ['moduleName' => 'ModuleManager_Options_In_Any_Value_Form']
                $module = array($im => $vm);
            else
                # ['module', ..]
                $module = $vm;

            $this->loadModule($module);
        }


        ## Trigger Post Load Modules Event
        #
        $collectorPass = new DataCollectorModuleManager;
        $collectorPass->setModuleManager($this);
        $this->event()->trigger(EventHeapOfModuleManager::EVENT_MODULES_POSTLOAD, $collectorPass);

        return $this;
    }
function loadModules(array $modules)
    {
        $modules = array_diff($modules, array_keys($this->_c__loadedModules));
        if ( empty($modules) )
            // Modules are loaded
            return $this;


        // Load Enabled Modules:
        foreach($modules as $im => $vm) {
            /* @see loadModule */
            if (is_string($im) && $vm)
                # ['moduleName' => 'ModuleManager_Options_In_Any_Value_Form']
                $module = array($im => $vm);
            else
                # ['module', ..]
                $module = $vm;

            $this->loadModule($module);
        }


        ## Trigger Post Load Modules Event
        #
        $collectorPass = new DataCollectorModuleManager;
        $collectorPass->setModuleManager($this);
        $this->event()->trigger(EventHeapOfModuleManager::EVENT_MODULES_POSTLOAD, $collectorPass);

        return $this;
    }
function loadModules ( array $ modules ) { $ modules = array_diff ( $ modules , array_keys ( $ this -> _c__loadedModules ) ) ; if ( empty ( $ modules ) ) // Modules are loaded return $ this ; // Load Enabled Modules: foreach ( $ modules as $ im => $ vm ) { /* @see loadModule */ if ( is_string ( $ im ) && $ vm ) # ['moduleName' => 'ModuleManager_Options_In_Any_Value_Form'] $ module = array ( $ im => $ vm ) ; else # ['module', ..] $ module = $ vm ; $ this -> loadModule ( $ module ) ; } ## Trigger Post Load Modules Event # $ collectorPass = new DataCollectorModuleManager ; $ collectorPass -> setModuleManager ( $ this ) ; $ this -> event ( ) -> trigger ( EventHeapOfModuleManager :: EVENT_MODULES_POSTLOAD , $ collectorPass ) ; return $ this ; }
Load Modules By Names List

- do not reload loaded module

loadModules(['module_name' => 'resolver\to\module', 'with_module_name'])

@param array $modules

@throws exModuleNotFound
@throws \Exception
@return $this
Load Modules By Names List