Prado\TApplication::getModule PHP Метод

getModule() публичный Метод

public getModule ( $id ) : prado\IModule
Результат prado\IModule the module with the specified ID, null if not found
    public function getModule($id)
    {
        if (!array_key_exists($id, $this->_modules)) {
            return null;
        }
        // force loading of a lazy module
        if ($this->_modules[$id] === null) {
            $module = $this->internalLoadModule($id, true);
            $module[0]->init($module[1]);
        }
        return $this->_modules[$id];
    }