public function onResult(\pq\Result $result = null) {
		if ($result && $result->status != \pq\Result::TUPLES_OK) {
			return $result;
		}
		
		$rowset = $this->getRowsetPrototype();
		if (is_callable($rowset)) {
			return $rowset($result);
		} elseif ($rowset) {
			return new $rowset($this, $result);
		}
		
		return $result;
	}
public function onResult(\pq\Result $result = null) {
		if ($result && $result->status != \pq\Result::TUPLES_OK) {
			return $result;
		}
		
		$rowset = $this->getRowsetPrototype();
		if (is_callable($rowset)) {
			return $rowset($result);
		} elseif ($rowset) {
			return new $rowset($this, $result);
		}
		
		return $result;
	}
public function onResult ( \ pq \ Result $ result = null ) { if ( $ result && $ result -> status != \ pq \ Result :: TUPLES_OK ) { return $ result ; } $ rowset = $ this -> getRowsetPrototype ( ) ; if ( is_callable ( $ rowset ) ) { return $ rowset ( $ result ) ; } elseif ( $ rowset ) { return new $ rowset ( $ this , $ result ) ; } return $ result ; }
Retreives the result of an executed query
@param \pq\Result $result
@return mixed
Retreives the result of an executed query