library/database/class.dataset.php
protected function _FetchAllRows($DatasetType = FALSE) {
		if(!is_null($this->_Result))
			return;

      if($DatasetType)
         $this->_DatasetType = $DatasetType;
		
		$Result = array();
      if (is_null($this->_PDOStatement)) {
         $this->_Result = $Result;
         return;
      }

      $Result = $this->_PDOStatement->fetchAll($this->_DatasetType == DATASET_TYPE_ARRAY ? PDO::FETCH_ASSOC : PDO::FETCH_OBJ);

//		$this->_PDOStatement->setFetchMode($this->_DatasetType == DATASET_TYPE_ARRAY ? PDO::FETCH_ASSOC : PDO::FETCH_OBJ);
//      while($Row = $this->_PDOStatement->fetch()) {
//			$Result[] = $Row;
//		}

      $this->FreePDOStatement(TRUE);
		$this->_Result = $Result;
   }
protected function _FetchAllRows($DatasetType = FALSE) {
		if(!is_null($this->_Result))
			return;

      if($DatasetType)
         $this->_DatasetType = $DatasetType;
		
		$Result = array();
      if (is_null($this->_PDOStatement)) {
         $this->_Result = $Result;
         return;
      }

      $Result = $this->_PDOStatement->fetchAll($this->_DatasetType == DATASET_TYPE_ARRAY ? PDO::FETCH_ASSOC : PDO::FETCH_OBJ);

//		$this->_PDOStatement->setFetchMode($this->_DatasetType == DATASET_TYPE_ARRAY ? PDO::FETCH_ASSOC : PDO::FETCH_OBJ);
//      while($Row = $this->_PDOStatement->fetch()) {
//			$Result[] = $Row;
//		}

      $this->FreePDOStatement(TRUE);
		$this->_Result = $Result;
   }
protected function _FetchAllRows ( $ DatasetType = FALSE ) { if ( ! is_null ( $ this -> _Result ) ) return ; if ( $ DatasetType ) $ this -> _DatasetType = $ DatasetType ; $ Result = array ( ) ; if ( is_null ( $ this -> _PDOStatement ) ) { $ this -> _Result = $ Result ; return ; } $ Result = $ this -> _PDOStatement -> fetchAll ( $ this -> _DatasetType == DATASET_TYPE_ARRAY ? PDO :: FETCH_ASSOC : PDO :: FETCH_OBJ ) ; //		$this->_PDOStatement->setFetchMode($this->_DatasetType == DATASET_TYPE_ARRAY ? PDO::FETCH_ASSOC : PDO::FETCH_OBJ); //      while($Row = $this->_PDOStatement->fetch()) { //			$Result[] = $Row; //		} $ this -> FreePDOStatement ( TRUE ) ; $ this -> _Result = $ Result ; }
Fetches all rows from the PDOStatement object into the resultset.

@param string $DatasetType The format in which the result should be returned: object or array.
It will fill a different array depending on which type is specified.
Fetches all rows from the PDOStatement object into the resultset .