DbSqlMapClient.php 359 B

1234567891011121314
  1. <?php
  2. class LtDbSqlMapClient
  3. {
  4. public $configHandle;
  5. public $dbh;
  6. public function execute($mapId, $bind = null)
  7. {
  8. $sqlMap = $this->configHandle->get($this->dbh->group . "." . $mapId);
  9. $forceUseMaster = isset($sqlMap["force_use_master"]) ? $sqlMap["force_use_master"] : false;
  10. return $this->dbh->query($sqlMap["sql"], $bind, $forceUseMaster);
  11. }
  12. }