BxDolStudioModulesQuery.php 780 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 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 = array())
  17. {
  18. if(empty($aParamsSet))
  19. return false;
  20. $sWhereClause = !empty($aParamsWhere) ? $this->arrayToSQL($aParamsWhere, " AND ") : "1";
  21. $sSql = "UPDATE `sys_modules` SET " . $this->arrayToSQL($aParamsSet) . " WHERE " . $sWhereClause;
  22. return $this->query($sSql);
  23. }
  24. }
  25. /** @} */