@@ -355,7 +355,7 @@ discard block |
||
| 355 | 355 | * Returns the last insert ID from the previous query. This is |
| 356 | 356 | * the value from an auto_increment field. |
| 357 | 357 | * |
| 358 | - * @return integer |
|
| 358 | + * @return string |
|
| 359 | 359 | * The last interested row's ID |
| 360 | 360 | */ |
| 361 | 361 | public function getInsertID() |
@@ -382,7 +382,7 @@ discard block |
||
| 382 | 382 | * conflicts. By default this is set to false, which will not update the data and |
| 383 | 383 | * would return an SQL error |
| 384 | 384 | * @throws DatabaseException |
| 385 | - * @return boolean |
|
| 385 | + * @return PDOStatement |
|
| 386 | 386 | */ |
| 387 | 387 | public function insert(array $fields, $table, $updateOnDuplicate = false) |
| 388 | 388 | { |
@@ -445,7 +445,7 @@ discard block |
||
| 445 | 445 | * A WHERE statement for this UPDATE statement, defaults to null |
| 446 | 446 | * which will update all rows in the $table |
| 447 | 447 | * @param array $params |
| 448 | - * @return bool |
|
| 448 | + * @return PDOStatement |
|
| 449 | 449 | */ |
| 450 | 450 | public function update($fields, $table, $where = null, $params = array()) |
| 451 | 451 | { |
@@ -472,7 +472,7 @@ discard block |
||
| 472 | 472 | * which will delete all rows in the $table |
| 473 | 473 | * @param array $params |
| 474 | 474 | * @throws DatabaseException |
| 475 | - * @return boolean |
|
| 475 | + * @return PDOStatement |
|
| 476 | 476 | */ |
| 477 | 477 | public function delete($table, $where = null, array $params = array()) |
| 478 | 478 | { |
@@ -75,7 +75,7 @@ |
||
| 75 | 75 | /** |
| 76 | 76 | * Overrides the default `initialiseLog()` method and writes logs to `manifest/logs/install` |
| 77 | 77 | * |
| 78 | - * @param null $filename |
|
| 78 | + * @param string $filename |
|
| 79 | 79 | * @return boolean|void |
| 80 | 80 | * @throws Exception |
| 81 | 81 | */ |
@@ -141,6 +141,9 @@ |
||
| 141 | 141 | } |
| 142 | 142 | } |
| 143 | 143 | |
| 144 | + /** |
|
| 145 | + * @param string $message |
|
| 146 | + */ |
|
| 144 | 147 | private function __appendError(array $codes, XMLElement &$element, $message = null) |
| 145 | 148 | { |
| 146 | 149 | if (is_null($message)) { |