public function fetchPairs($key, $value = NULL) {
		$return = array();
		foreach ($this as $row) {
			$return[$row->$key] = $value ? $row->$value : $row->$key;
		}
		return $return;
	}
public function fetchPairs($key, $value = NULL) {
		$return = array();
		foreach ($this as $row) {
			$return[$row->$key] = $value ? $row->$value : $row->$key;
		}
		return $return;
	}
public function fetchPairs ( $ key , $ value = NULL ) { $ return = array ( ) ; foreach ( $ this as $ row ) { $ return [ $ row -> $ key ] = $ value ? $ row -> $ value : $ row -> $ key ; } return $ return ; }
Returns all rows as associative array.
@param  string
@param  string $value name used for an array value or NULL for the whole row
@return array
Returns all rows as associative array .