Ejemplo n.º 1
0
 /**
 	Fetches all the rows of the result set.
 
 	The return value type can differ depending on the row class.
 	The row class can be changed using the rowClass method.
 
 	This method should not be used when iterating over the rows of the result set
 	through the Iterator interface.
 
 	@return	array(mixed)	An array of arrays or instances of rowClass.
 */
 public function fetchAll()
 {
     if ($this->sRowClass !== null) {
         return parent::fetchAll();
     }
     if ($this->getEncoder() !== null) {
         return $this->encodeArray($this->aRows);
     }
     return $this->aRows;
 }
Ejemplo n.º 2
0
 /**
 	Fetches all the rows of the result set.
 
 	The return value type can differ depending on the row class.
 	The row class can be changed using the rowClass method.
 
 	This method should not be used when iterating over the rows of the result set
 	through the Iterator interface.
 
 	@return	array(mixed)	An array of arrays or instances of rowClass.
 */
 public function fetchAll()
 {
     if ($this->sRowClass !== null) {
         return parent::fetchAll();
     }
     $a = $this->oResult->fetchAll(SQLITE_ASSOC);
     if ($this->getEncoder() !== null) {
         return $this->encodeArray($a);
     }
     return $a;
 }
Ejemplo n.º 3
0
 /**
 	Fetches all the rows of the result set.
 
 	The return value type can differ depending on the row class.
 	The row class can be changed using the rowClass method.
 
 	This method should not be used when iterating over the rows of the result set
 	through the Iterator interface.
 
 	@return	array(mixed)	An array of arrays or instances of rowClass.
 */
 public function fetchAll()
 {
     if ($this->sRowClass !== null) {
         return parent::fetchAll();
     }
     $m = pg_fetch_all($this->rResult);
     if ($m) {
         if ($this->getEncoder() !== null) {
             return $this->encodeArray($m);
         }
         return $m;
     }
     return array();
 }