get sub module instance
@param  string $name
@return Module|null
504998
public function getModule($name)
	{
	    $name = $this->parseModuleAlias($name);
	    $uid = 'module.' . $name;
	    
	    if ($this->hasModule($name)) {
		    /* @var $module Module */
	        return $this->get($uid);
		} else {
		    $basePath = rtrim($this->basePath, '\\/' ) . '/' . $name;
		    if (file_exists($basePath)) {
		        
		        $this->setModule($name, $basePath);
		        
		        return $this->get($uid);;
		    }
		}
		
		return null;
	}
263746
public function getCustomPlugin($name)
    {
        if (isset($this->plugins[$name])) {
            return $this->plugins[$name]['callback'];
        }

        return null;
    }
1146322
public static function get($name) 
    {
        self::load();
        if (!array_key_exists($name, self::$_factories)) {
            return null;
        }
        return self::$_factories[$name];
    }
1012532
public function get($name)
    {
        return isset($this->items[$name]) ? $this->items[$name] : null;
    }
685062
public function getMeta($name)
    {
        $node = $this->filterXPath('descendant-or-self::meta[@name = \'' . $name . '\']')->getNode(0);
        if ($node instanceof \DOMElement) {
            return $node->getAttribute('content');
        } else {
            return null;
        }
    }
930137
public static function getInstance($name)
	{
		$model = sprintf('\\%sAdmin', Str::studly($name));
		$model = new $model;

		return $model;
	}
456399
public function getModule($name)
    {
        if (!isset($this->modules[$name])) {
            throw new \LogicException(sprintf('The module "%s" don\'t exists.', $name));
        }
        return $this->modules[$name];
    }
52734
public static function get($name)
	{
		return isset(self::$configParams[$name])
			? self::$configParams[$name]
			: null;
	}
415633
private function getModule($name)
    {
        if (!$this->moduleContainer->hasModule($name)) {
            throw new Exception(sprintf('«%s» module is not available.', $name));
        }

        $module = $this->moduleContainer->getModule($name);

        return $module;
    }
1094276
protected function create($name) {
    $c = $this->avaibleModules[$name]['class'];
    $module = new $c($this->project, $this->inTests);
    $module->setName($name);
    
    $this->modules[$name] = $module;
    
    PSC::getEventManager()->dispatchEvent('Psc.ModuleCreated', NULL, $module);
    
    return $module;
  }
267652
protected function getSubClass($name)
    {
        if ($this->hasSubClass($name)) {
            return $this->subClasses[$name];
        }

        throw new \RuntimeException(sprintf(
            'Unable to find the subclass `%s` for admin `%s`',
            $name,
            \get_class($this)
        ));
    }
590501
public function getScope($name)
    {
        if (array_key_exists($name, $this->scopes)) {
            return $this->scopes[$name];
        }

        return null;
    }
16412
static function getInstance($name = null)
  {
    if (empty($name)) {
      $name = get_called_class();
    }
    if (!empty(static::$plugins[$name])) {
      return static::$plugins[$name];
    }
    return false;
  }
310193
public static function getTag(string $name)
    {
        if (isset(self::$tags[$name])) {
            return self::$tags[$name];
        }
        $class = '\\sdopx\\plugin\\' . Utils::toCamel($name) . 'Tag';
        if (class_exists($class)) {
            self::$tags[$name] = new $class();
            return self::$tags[$name];
        }
        return null;
    }
739166
public function getFilter($name)
    {
        $filter = null;
        if(isset($this->_filters[$name])) {
            $filter = $this->_filters[$name];
        }

        return $filter;
    }
1061646
public function get($name)
    {
        if (! $this->has($name)) return null;

        $def = $this->components[$name];

        // already initialized.
        if (! $def instanceof ComponentDefine) {
            return $def;
        }

        // initialize.
        return $def->getInstance();
    }
522226
protected function fromPath($name)
    {
        $modules = [];

        $base = $this->getBase();
        $path = $this->getDir();

        if ($this->endsWith($name, '*')) {

            $dirs = $this->getDirs($base . $path, $name);

            foreach ($dirs as $name => $dir) {
                $modules[] = $this->makeFromPath($name, $path);
            }

        } else {
            $modules[] = $this->makeFromPath($name, $name);
        }

        return $modules;
    }