src/Core/Manifest/ModuleManifest.php
public function getModule($name)
    {
        // Optimised find
        if (isset($this->modules[$name])) {
            return $this->modules[$name];
        }

        // Fall back to lookup by shortname
        if (!strstr($name, '/')) {
            foreach ($this->modules as $module) {
                if (strcasecmp($module->getShortName(), $name) === 0) {
                    return $module;
                }
            }
        }

        return null;
    }
public function getModule($name)
    {
        // Optimised find
        if (isset($this->modules[$name])) {
            return $this->modules[$name];
        }

        // Fall back to lookup by shortname
        if (!strstr($name, '/')) {
            foreach ($this->modules as $module) {
                if (strcasecmp($module->getShortName(), $name) === 0) {
                    return $module;
                }
            }
        }

        return null;
    }
public function getModule ( $ name ) { // Optimised find if ( isset ( $ this -> modules [ $ name ] ) ) { return $ this -> modules [ $ name ] ; } // Fall back to lookup by shortname if ( ! strstr ( $ name , '/' ) ) { foreach ( $ this -> modules as $ module ) { if ( strcasecmp ( $ module -> getShortName ( ) , $ name ) === 0 ) { return $ module ; } } } return null ; }
Get module by name

@param string $name
@return Module
Get module by name