protected static function checkAlias($module) {
        // $module alias not called
        if (array_key_exists($module, static::getConfig('modules')))
            return $module;

        // check module alias
        foreach (static::getConfig('modules') as $cModule => $moduleOptions) {
            if (!array_key_exists('alias', $moduleOptions))
                continue;

            if ($moduleOptions['alias'] === Util::camelToHyphen($module))
                return $cModule;
        }

        // module nor alias found
        return $module;
    }
protected static function checkAlias($module) {
        // $module alias not called
        if (array_key_exists($module, static::getConfig('modules')))
            return $module;

        // check module alias
        foreach (static::getConfig('modules') as $cModule => $moduleOptions) {
            if (!array_key_exists('alias', $moduleOptions))
                continue;

            if ($moduleOptions['alias'] === Util::camelToHyphen($module))
                return $cModule;
        }

        // module nor alias found
        return $module;
    }
protected static function checkAlias ( $ module ) { // $module alias not called if ( array_key_exists ( $ module , static :: getConfig ( 'modules' ) ) ) return $ module ; // check module alias foreach ( static :: getConfig ( 'modules' ) as $ cModule => $ moduleOptions ) { if ( ! array_key_exists ( 'alias' , $ moduleOptions ) ) continue ; if ( $ moduleOptions [ 'alias' ] === Util :: camelToHyphen ( $ module ) ) return $ cModule ; } // module nor alias found return $ module ; }
Checks if the module is an alias and returns the ModuleName
@param string $module
@return string
Checks if the module is an alias and returns the ModuleName