Index: trunk/phase3/includes/db/Database.php |
— | — | @@ -43,14 +43,6 @@ |
44 | 44 | function open( $server, $user, $password, $dbName ); |
45 | 45 | |
46 | 46 | /** |
47 | | - * The DBMS-dependent part of query() |
48 | | - * |
49 | | - * @param $sql String: SQL query. |
50 | | - * @return Result object to feed to fetchObject, fetchRow, ...; or false on failure |
51 | | - */ |
52 | | - protected function doQuery( $sql ); |
53 | | - |
54 | | - /** |
55 | 47 | * Fetch the next row from the given result object, in object form. |
56 | 48 | * Fields can be retrieved with $row->fieldname, with fields acting like |
57 | 49 | * member variables. |
— | — | @@ -685,6 +677,14 @@ |
686 | 678 | } |
687 | 679 | |
688 | 680 | /** |
| 681 | + * The DBMS-dependent part of query() |
| 682 | + * |
| 683 | + * @param $sql String: SQL query. |
| 684 | + * @return Result object to feed to fetchObject, fetchRow, ...; or false on failure |
| 685 | + */ |
| 686 | + protected abstract function doQuery( $sql ); |
| 687 | + |
| 688 | + /** |
689 | 689 | * Determine whether a query writes to the DB. |
690 | 690 | * Should return true if unsure. |
691 | 691 | * |