Basecoat\DB::foundRows PHP Method

foundRows() public method

Retrieve total rows found for last SELECT SQL_CALC_FOUND_ROWS query with LIMIT clause
public foundRows ( boolean $useMaster = false ) : integer
$useMaster boolean set to TRUE to use the master server connection
return integer number of total rows found
    public function foundRows($useMaster = false)
    {
        $result = $this->select('SELECT FOUND_ROWS() fr', null, $useMaster, true);
        if ($result != -1) {
            return $this->selectResult[0]['fr'];
        }
        return $result;
    }