public function fetchAll($pSingle = false)
    {
        if ($this->_stm === false) {
            return array();
        }

        if ($pSingle) {
            return $this->_stm->fetch(PDO::FETCH_ASSOC);
        }

        return $this->_stm->fetchAll(PDO::FETCH_ASSOC);
    }
public function fetchAll($pSingle = false)
    {
        if ($this->_stm === false) {
            return array();
        }

        if ($pSingle) {
            return $this->_stm->fetch(PDO::FETCH_ASSOC);
        }

        return $this->_stm->fetchAll(PDO::FETCH_ASSOC);
    }
public function fetchAll ( $ pSingle = false ) { if ( $ this -> _stm === false ) { return array ( ) ; } if ( $ pSingle ) { return $ this -> _stm -> fetch ( PDO :: FETCH_ASSOC ) ; } return $ this -> _stm -> fetchAll ( PDO :: FETCH_ASSOC ) ; }
Fetch all the results as array.

@param bool $pSingle Return a single row or an array of rows.
@return array
Fetch all the results as array .