public function getModulesAsArray()
    {

        // initialize the array for the modules
        $modules = array();

        // iterate over the module nodes and sort them into an array
        /** @var \AppserverIo\Appserver\Core\Api\Node\ModuleNode $module */
        foreach ($this->getModules() as $module) {
            $modules[$module->getUuid()] = $module->getType();
        }

        // return the array
        return $modules;
    }
public function getModulesAsArray()
    {

        // initialize the array for the modules
        $modules = array();

        // iterate over the module nodes and sort them into an array
        /** @var \AppserverIo\Appserver\Core\Api\Node\ModuleNode $module */
        foreach ($this->getModules() as $module) {
            $modules[$module->getUuid()] = $module->getType();
        }

        // return the array
        return $modules;
    }
public function getModulesAsArray ( ) { // initialize the array for the modules $ modules = array ( ) ; // iterate over the module nodes and sort them into an array /** @var \AppserverIo\Appserver\Core\Api\Node\ModuleNode $module */ foreach ( $ this -> getModules ( ) as $ module ) { $ modules [ $ module -> getUuid ( ) ] = $ module -> getType ( ) ; } // return the array return $ modules ; }
Returns the modules as an associative array

@return array The array with the sorted modules
Returns the modules as an associative array