public function readAll($sql, $calcFoundRows = false)
    {
        $result = $this->read($calcFoundRows ? $this->insertPagingFlag($sql) : $sql);
        $rows = $result->fetchAll(PDO::FETCH_ASSOC);
        //$this->convertDatesInRows($result, $rows);
        unset($result);
        unset($sql);
        return $rows;
    }
public function readAll($sql, $calcFoundRows = false)
    {
        $result = $this->read($calcFoundRows ? $this->insertPagingFlag($sql) : $sql);
        $rows = $result->fetchAll(PDO::FETCH_ASSOC);
        //$this->convertDatesInRows($result, $rows);
        unset($result);
        unset($sql);
        return $rows;
    }
public function readAll ( $ sql , $ calcFoundRows = false ) { $ result = $ this -> read ( $ calcFoundRows ? $ this -> insertPagingFlag ( $ sql ) : $ sql ) ; $ rows = $ result -> fetchAll ( PDO :: FETCH_ASSOC ) ; //$this->convertDatesInRows($result, $rows); unset ( $ result ) ; unset ( $ sql ) ; return $ rows ; }
Returns an associative array of rows and columns

<code>
$result = $this->readAll('SELECT id, col1 FROM table');

...

array(
0 => array( 'id' => '1', 'col1' => 'value'),
1 => array( 'id' => '2', 'col1' => 'value'),
...
)
</code>

@param string  $sql           SELECT statement
@param boolean $calcFoundRows Flag to indicate to the underlying DB that
the query should calculate the total number of rows matching the
WHERE clause of the SELECT regardless of any LIMIT clause.  In MySQL,
this equates to injecting SQL_CALC_FOUND_ROWS into the SELECT.

@return array Associative array of rows and columns
Returns an associative array of rows and columns