The name of the cache file
@param FrontendModule $module
@return string The name of the cache file, it needn't exist yet
@throws \Exception Raises an error in case the cache key is not alphanumeric
965254
static function ContentCacheFile(FrontendModule $module)
    {
        $file = $module->Content()->GetID();
        $cacheKey = $module->CacheKey();
        if ($cacheKey)
        {
            if (!ctype_alnum($cacheKey))
            {
                throw new \Exception(Trans('Core.CacheKey.Error.NotAlphaNumeric'));
            }
            $file .= '-' . $cacheKey;
        }
        $cacheFolder = Path::Combine(PHINE_PATH, 'App/Phine/Cache/Content');
        return Path::AddExtension(Path::Combine($cacheFolder, $file), 'phtml');
    }
540344
public function getInstance($module)
    {
        if ( ! $this->isLoaded($module))
        {
            $this->load($module);
        }

        return $this->instances[$module];
    }
1162334
public function getModuleDir($module, $dir)
    {
        return $this->jsDir.DIRECTORY_SEPARATOR.$dir.DIRECTORY_SEPARATOR.$this->getModuleFileName($module);
    }
717191
public function getModuleName()
    {
        if (null === $this->module) {
            $this->module = $this->attributes->get($this->getModuleKey());
        }

        return $this->module;
    }
252349
public function validate(\OxidEsales\Eshop\Core\Module\Module $module)
    {
        return file_exists($module->getMetadataPath());
    }
698327
public function path($module)
	{
		$module     = $this->canonical($module);
		$prefixed   = $module;
		$unprefixed = substr($module, 4);

		$paths = array(
			PATH_APP . DS . 'modules' . DS . $unprefixed . DS . $unprefixed . '.php',
			PATH_APP . DS . 'modules' . DS . $prefixed . DS . $prefixed . '.php',
			PATH_CORE . DS . 'modules' . DS . $unprefixed . DS . $unprefixed . '.php',
			PATH_CORE . DS . 'modules' . DS . $prefixed . DS . $prefixed . '.php'
		);

		foreach ($paths as $path)
		{
			if (file_exists($path))
			{
				return $path;
			}
		}

		return '';
	}
674545
public static function registeredModuleName($moduleUid)
    {
        if (!empty(static::$_dynModulesCache[$moduleUid]['name'])) {
            $name = static::$_dynModulesCache[$moduleUid]['name'];
            return $name;
        }
        return false;
    }
359976
public function getPath($module)
    {
        $dir = $this->dir . DIRECTORY_SEPARATOR . $module;

        if (!is_dir($dir)) {
            return false;
        }

        $find = new Finder();
        $files = $find->files()
            ->in($dir)
            ->name('slender.*');

        if ($files->count() < 1) {
            return false;
        }

        $filesIterator = iterator_to_array($files->getIterator());
        $iterator = array_shift($filesIterator);

        return $iterator->getPath();
    }
1174706
public static function getModuleAlias($module) {
        if (NULL !== $alias = static::getConfig('modules', $module, 'alias', false)) {
            return $alias;
        }

        return Util::camelToHyphen($module);
    }
1069618
protected function cacheFileName( $placement = false )
    {
        $cacheFileName = $this->FileName . '-' . $this->RootDir . '-' . $this->DirectAccess;

        if ( !$this->DirectAccess )
        {
            $cacheFileName .= '-' . serialize( $this->overrideDirs() );
        }
        if ( $this->UseTextCodec )
        {
            $cacheFileName .= '-' . eZTextCodec::internalCharset();
        }
        if ( $placement )
        {
            $cacheFileName .= '-placement:' . $placement;
        }
        $filePreFix = explode( '.', $this->FileName);
        return $filePreFix[0] . '-' . md5( $cacheFileName ) . '.php';
    }
125872
protected function js_module_loaded($module) {
        if (is_string($module)) {
            $modulename = $module;
        } else {
            $modulename = $module['name'];
        }
        return array_key_exists($modulename, $this->YUI_config->modules) ||
               array_key_exists($modulename, $this->extramodules);
    }
556810
public String getModulePath()
    {
        ClassLevelCache cache = ClassLevelCache.getCache( getClass() );
        String modulePath = ( String ) cache.getCacheObject( CACHED_INFO_KEY );
        
        if ( modulePath == null )
        {
            modulePath = "/-";
            String className = getClass().getName();
            int lastDot = className.lastIndexOf( '.' );
            if (lastDot != -1) {
                className = className.substring( 0, lastDot );
                modulePath += className.replace( '.', '/' );
            }
            cache.setCacheObject( CACHED_INFO_KEY, modulePath );
        }
        
        return modulePath;
    }
1272382
public function getPackageName(): string
	{
		if( $this->module_id > 0 )
		{
			$module = $this->getModule();
			if( strpos($this->class_name, "\\") === false )
			{
				$this->class_name = $module->getNamespace() . "Plugin\\" . $this->class_name;
			}
			return $module->getName();
		}
		else
		{
			return $this->name;
		}
	}
1363451
public function isDefaultModule($module=null)
	{
	    $mname = '';
	    if (!$module) {
	        $mname = $this->getCurrentModule()->getName();
	    } else {
	        if (is_string($module)) {
	            $mname = $module;
	        } elseif ($module instanceof Module) {
	            $mname = $module->getName();
	        }
	    }
	    
	    return $mname == $this->getDefaultModule()->getName();
	}
481461
public function removeFromCacheDir($module)
    {
        // Create a path
        $path = $this->appConfig->getModuleCacheDir($module);
        return $this->performRemoval($path);
    }
749206
public function getPath($module)
    {
        foreach ($this->resolvers as $resolver) {
            $path = $resolver->getPath($module);
            if ($path !==false) {
                return $path;
            }
        }

        return false;
    }
667648
public function setModule($module)
        {
            if (null !== $module && !is_string($module)) {
                throw new Exception(
                    'Invalid argument: $module must be a string or null'
                );
            }

            $this->_module    = $module;
            $this->_hrefCache = null;

            return $this;
        }