Index: trunk/phase3/includes/db/Database.php |
— | — | @@ -2764,7 +2764,7 @@ |
2765 | 2765 | * Get the number of rows in a result object |
2766 | 2766 | */ |
2767 | 2767 | function numRows() { |
2768 | | - return $this->db->numRows( $this->result ); |
| 2768 | + return $this->db->numRows( $this ); |
2769 | 2769 | } |
2770 | 2770 | |
2771 | 2771 | /** |
— | — | @@ -2777,7 +2777,7 @@ |
2778 | 2778 | * @throws DBUnexpectedError Thrown if the database returns an error |
2779 | 2779 | */ |
2780 | 2780 | function fetchObject() { |
2781 | | - return $this->db->fetchObject( $this->result ); |
| 2781 | + return $this->db->fetchObject( $this ); |
2782 | 2782 | } |
2783 | 2783 | |
2784 | 2784 | /** |
— | — | @@ -2789,14 +2789,14 @@ |
2790 | 2790 | * @throws DBUnexpectedError Thrown if the database returns an error |
2791 | 2791 | */ |
2792 | 2792 | function fetchRow() { |
2793 | | - return $this->db->fetchRow( $this->result ); |
| 2793 | + return $this->db->fetchRow( $this ); |
2794 | 2794 | } |
2795 | 2795 | |
2796 | 2796 | /** |
2797 | 2797 | * Free a result object |
2798 | 2798 | */ |
2799 | 2799 | function free() { |
2800 | | - $this->db->freeResult( $this->result ); |
| 2800 | + $this->db->freeResult( $this ); |
2801 | 2801 | unset( $this->result ); |
2802 | 2802 | unset( $this->db ); |
2803 | 2803 | } |
— | — | @@ -2806,7 +2806,7 @@ |
2807 | 2807 | * See mysql_data_seek() |
2808 | 2808 | */ |
2809 | 2809 | function seek( $row ) { |
2810 | | - $this->db->dataSeek( $this->result, $row ); |
| 2810 | + $this->db->dataSeek( $this, $row ); |
2811 | 2811 | } |
2812 | 2812 | |
2813 | 2813 | /********************* |
— | — | @@ -2817,7 +2817,7 @@ |
2818 | 2818 | |
2819 | 2819 | function rewind() { |
2820 | 2820 | if ($this->numRows()) { |
2821 | | - $this->db->dataSeek($this->result, 0); |
| 2821 | + $this->db->dataSeek($this, 0); |
2822 | 2822 | } |
2823 | 2823 | $this->pos = 0; |
2824 | 2824 | $this->currentRow = null; |