_iId = empty($aModule['id']) ? 0 : (int)$aModule['id']; $this->_sName = isset($aModule['name']) ? $aModule['name'] : ''; $this->_sVendor = $aModule['vendor']; $this->_sClassPrefix = $aModule['class_prefix']; $this->_sDbPrefix = $aModule['db_prefix']; $this->_sDirectory = $aModule['path']; $this->_sHomePath = BX_DIRECTORY_PATH_MODULES . $this->_sDirectory; $this->_sClassPath = $this->_sHomePath . 'classes/'; $this->_sUri = $aModule['uri']; $this->_sHomeUrl = BX_DOL_URL_MODULES . $this->_sDirectory; } function getId() { return $this->_iId; } function getName() { return $this->_sName; } function getClassPrefix() { return $this->_sClassPrefix; } function getDbPrefix() { return $this->_sDbPrefix; } function getDirectory() { return $this->_sDirectory; } function getHomePath() { return $this->_sHomePath; } function getClassPath() { return $this->_sClassPath; } /** * Get unique URI. * * @return string with unique URI. */ function getUri() { return $this->_sUri; } /** * Get base URI which depends on the Permalinks mechanism. * * example /modules/?r=module_uri or /m/module_uri * @return string with base URI. */ function getBaseUri() { return BxDolPermalinks::getInstance()->permalink('modules/?r=' . $this->_sUri . '/'); } /** * Get full URL. * * @return string with full URL. */ function getHomeUrl() { return $this->_sHomeUrl; } } /** @} */