1
0

BxBaseModTextDb.php 753 B

12345678910111213141516171819202122232425262728293031
  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('BxBaseModGeneralDb');
  12. /*
  13. * Module database queries
  14. */
  15. class BxBaseModTextDb extends BxBaseModGeneralDb
  16. {
  17. public function __construct(&$oConfig)
  18. {
  19. parent::__construct($oConfig);
  20. }
  21. public function getContentInfoById ($iContentId)
  22. {
  23. $sQuery = $this->prepare ("SELECT `c`.* FROM `" . $this->_oConfig->CNF['TABLE_ENTRIES'] . "` AS `c` WHERE `c`.`id` = ?", $iContentId);
  24. return $this->getRow($sQuery);
  25. }
  26. }
  27. /** @} */