示例#1
0
 /**
  * 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();
 }
示例#2
0
文件: Store.php 项目: ajaboa/crmpuan
 public function getTotal()
 {
     return isset($this->_stmt->foundRows) ? $this->_stmt->foundRows : $this->_stmt->rowCount();
 }