| 12345678910111213141516171819202122232425262728293031323334353637 |
- <?php defined('BX_DOL') or die('hack attempt');
- /**
- * Copyright (c) UNA, Inc - https://una.io
- * MIT License - https://opensource.org/licenses/MIT
- *
- * @defgroup UnaCore UNA Core
- * @{
- */
- /**
- * Base class for all modules DB classes
- */
- class BxDolModuleDb extends BxDolModuleQuery
- {
- protected $_sPrefix;
- /**
- * Constructor
- */
- public function __construct($oConfig)
- {
- parent::__construct();
- if (is_a($oConfig,'BxDolModuleConfig'))
- $this->_sPrefix = $oConfig->getDbPrefix();
- else
- trigger_error ('It is impossible to create BxDolModuleDb class instance without prefix: ' . get_class($this), E_USER_ERROR);
- }
- public function getPrefix()
- {
- return $this->_sPrefix;
- }
- }
- /** @} */
|