/** * @param $table * @param $where * @return bool */ public function has($table, $where) { if (empty($this->_reader)) { return $this->_writer->has($table, $where); } else { return $this->_reader->has($table, $where); } }
public function has($where, $extCall = false) { $this->gp->checkAccess(__FUNCTION__, $extCall); if (is_numeric($where)) { $where = array('id' => $where); } if (!is_array($where)) { throw new FatalError('Invalid argument'); } return $this->dbConnection->has($this->dbTable, $where); }