/** * Return total amount of record for the statement (without limit) * @return integer Number of total Records */ public function getTotal() { if (!isset($this->_stmt)) { $this->_stmt = $this->createStatement(); } return isset($this->_stmt->foundRows) ? $this->_stmt->foundRows : $this->_stmt->rowCount(); }
public function getTotal() { return isset($this->_stmt->foundRows) ? $this->_stmt->foundRows : $this->_stmt->rowCount(); }