BxDolStudioModulesQuery.php 730 B

1234567891011121314151617181920212223242526272829
  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 DolphinStudio Dolphin Studio
  7. * @{
  8. */
  9. bx_import('BxDolModuleQuery');
  10. class BxDolStudioModulesQuery extends BxDolModuleQuery
  11. {
  12. function __construct()
  13. {
  14. parent::__construct();
  15. }
  16. public function updateModule($aParamsSet, $aParamsWhere)
  17. {
  18. if(empty($aParamsSet) || empty($aParamsWhere))
  19. return false;
  20. $sSql = "UPDATE `sys_modules` SET " . $this->arrayToSQL($aParamsSet) . " WHERE " . $this->arrayToSQL($aParamsWhere, " AND ");
  21. return $this->query($sSql);
  22. }
  23. }
  24. /** @} */