BxNotesDb.php 710 B

123456789101112131415161718192021222324252627282930313233
  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 Notes Notes
  7. * @ingroup DolphinModules
  8. *
  9. * @{
  10. */
  11. bx_import('BxDolModuleDb');
  12. /*
  13. * Module database queries
  14. */
  15. class BxNotesDb extends BxDolModuleDb {
  16. /*
  17. * Constructor.
  18. */
  19. function __construct(&$oConfig) {
  20. parent::__construct($oConfig);
  21. }
  22. function getContentInfoById ($iContentId) {
  23. $sQuery = $this->prepare ("SELECT `c`.* FROM `" . $this->_sPrefix . "posts` AS `c` WHERE `c`.`id` = ?", $iContentId);
  24. return $this->getRow($sQuery);
  25. }
  26. }
  27. /** @} */