BxGSearchDb.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?
  2. /***************************************************************************
  3. * Dolphin Smart Community Builder
  4. * -------------------
  5. * begin : Mon Mar 23 2006
  6. * copyright : (C) 2007 BoonEx Group
  7. * website : http://www.boonex.com
  8. * This file is part of Dolphin - Smart Community Builder
  9. *
  10. * Dolphin is free software; you can redistribute it and/or modify it under
  11. * the terms of the GNU General Public License as published by the
  12. * Free Software Foundation; either version 2 of the
  13. * License, or any later version.
  14. *
  15. * Dolphin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
  16. * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  17. * See the GNU General Public License for more details.
  18. * You should have received a copy of the GNU General Public License along with Dolphin,
  19. * see license.txt file; if not, write to marketing@boonex.com
  20. ***************************************************************************/
  21. bx_import('BxDolModuleDb');
  22. /*
  23. * Map module Data
  24. */
  25. class BxGSearchDb extends BxDolModuleDb {
  26. /*
  27. * Constructor.
  28. */
  29. function BxGSearchDb(&$oConfig) {
  30. parent::BxDolModuleDb();
  31. $this->_sPrefix = $oConfig->getDbPrefix();
  32. }
  33. function getSettingsCategory() {
  34. return $this->getOne("SELECT `ID` FROM `sys_options_cats` WHERE `name` = 'Google Search' LIMIT 1");
  35. }
  36. }
  37. ?>