public function count($table, $join = null, $column = null, $where = null) { $query = $this->query($this->select_context($table, $join, $column, $where, 'COUNT')); return $query ? 0 + $query->fetchColumn() : false; }
/** * @param $table * @param null $where * @return int */ public function count($table, $where = NULL) { if (empty($this->_reader)) { return $this->_writer->count($table, $where); } else { return $this->_reader->count($table, $where); } }