BxBaseModTextDb.php 795 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php defined('BX_DOL') or die('hack attempt');
  2. /**
  3. * Copyright (c) BoonEx Pty Limited - http://www.boonex.com/
  4. * CC-BY License - http://creativecommons.org/licenses/by/3.0/
  5. *
  6. * @defgroup BaseText Base classes for text modules
  7. * @ingroup DolphinModules
  8. *
  9. * @{
  10. */
  11. bx_import('BxDolModuleDb');
  12. /*
  13. * Module database queries
  14. */
  15. class BxBaseModTextDb extends BxDolModuleDb
  16. {
  17. protected $_oConfig;
  18. function __construct(&$oConfig)
  19. {
  20. parent::__construct($oConfig);
  21. $this->_oConfig = $oConfig;
  22. }
  23. function getContentInfoById ($iContentId)
  24. {
  25. $sQuery = $this->prepare ("SELECT `c`.* FROM `" . $this->_oConfig->CNF['TABLE_ENTRIES'] . "` AS `c` WHERE `c`.`id` = ?", $iContentId);
  26. return $this->getRow($sQuery);
  27. }
  28. }
  29. /** @} */