@@ -352,7 +352,7 @@ discard block |
||
| 352 | 352 | * Returns the last insert ID from the previous query. This is |
| 353 | 353 | * the value from an auto_increment field. |
| 354 | 354 | * |
| 355 | - * @return integer |
|
| 355 | + * @return string |
|
| 356 | 356 | * The last interested row's ID |
| 357 | 357 | */ |
| 358 | 358 | public function getInsertID() |
@@ -379,7 +379,7 @@ discard block |
||
| 379 | 379 | * conflicts. By default this is set to false, which will not update the data and |
| 380 | 380 | * would return an SQL error |
| 381 | 381 | * @throws DatabaseException |
| 382 | - * @return boolean |
|
| 382 | + * @return PDOStatement |
|
| 383 | 383 | */ |
| 384 | 384 | public function insert(array $fields, $table, $updateOnDuplicate=false) |
| 385 | 385 | { |
@@ -443,7 +443,7 @@ discard block |
||
| 443 | 443 | * A WHERE statement for this UPDATE statement, defaults to null |
| 444 | 444 | * which will update all rows in the $table |
| 445 | 445 | * @throws DatabaseException |
| 446 | - * @return boolean |
|
| 446 | + * @return PDOStatement |
|
| 447 | 447 | */ |
| 448 | 448 | public function update($fields, $table, $where = null, $params = array()) |
| 449 | 449 | { |
@@ -469,7 +469,7 @@ discard block |
||
| 469 | 469 | * A WHERE statement for this DELETE statement, defaults to null, |
| 470 | 470 | * which will delete all rows in the $table |
| 471 | 471 | * @throws DatabaseException |
| 472 | - * @return boolean |
|
| 472 | + * @return PDOStatement |
|
| 473 | 473 | */ |
| 474 | 474 | public function delete($table, $where = null, array $params = array()) |
| 475 | 475 | { |
@@ -585,11 +585,6 @@ discard block |
||
| 585 | 585 | * @param string $query |
| 586 | 586 | * The full SQL query to execute. Defaults to null, which will |
| 587 | 587 | * use the `$this->_lastResult` |
| 588 | - * @param array $params |
|
| 589 | - * An array containing parameters to be used in the query. The query has to be |
|
| 590 | - * sprintf-formatted. All values will be sanitized before being used in the query. |
|
| 591 | - * For sake of backwards-compatibility, the query will only be sprintf-processed |
|
| 592 | - * if $params is not empty. |
|
| 593 | 588 | * @return string |
| 594 | 589 | * Returns the value of the given column, if it doesn't exist, null will be |
| 595 | 590 | * returned |
@@ -649,9 +644,6 @@ discard block |
||
| 649 | 644 | * |
| 650 | 645 | * @uses QueryExecutionError |
| 651 | 646 | * @throws DatabaseException |
| 652 | - * @param string $type |
|
| 653 | - * Accepts one parameter, 'connect', which will return the correct |
|
| 654 | - * error codes when the connection sequence fails |
|
| 655 | 647 | */ |
| 656 | 648 | private function __error() |
| 657 | 649 | { |
@@ -699,7 +691,7 @@ discard block |
||
| 699 | 691 | * @throws Exception |
| 700 | 692 | * @param string $sql |
| 701 | 693 | * A string containing SQL queries delimited by `;` |
| 702 | - * @return boolean |
|
| 694 | + * @return boolean|null |
|
| 703 | 695 | * If one of the queries fails, false will be returned and no further queries |
| 704 | 696 | * will be executed, otherwise true will be returned. |
| 705 | 697 | */ |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | * @param array $fields |
| 23 | 23 | * Associative array of field names => values for the Page |
| 24 | 24 | * @throws DatabaseException |
| 25 | - * @return integer|boolean |
|
| 25 | + * @return false|string |
|
| 26 | 26 | * Returns the Page ID of the created Page on success, false otherwise. |
| 27 | 27 | */ |
| 28 | 28 | public static function add(array $fields) |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | * |
| 44 | 44 | * @param string $handle |
| 45 | 45 | * The handle of the page |
| 46 | - * @return integer |
|
| 46 | + * @return string |
|
| 47 | 47 | * The Page title |
| 48 | 48 | */ |
| 49 | 49 | public static function fetchTitleFromHandle($handle) |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | * |
| 63 | 63 | * @param string $handle |
| 64 | 64 | * The handle of the page |
| 65 | - * @return integer |
|
| 65 | + * @return string |
|
| 66 | 66 | * The Page ID |
| 67 | 67 | */ |
| 68 | 68 | public static function fetchIDFromHandle($handle) |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | * |
| 117 | 117 | * @param string $name |
| 118 | 118 | * Name of the template |
| 119 | - * @return mixed |
|
| 119 | + * @return string|false |
|
| 120 | 120 | * String, which is the path to the template if the template is found, |
| 121 | 121 | * false otherwise |
| 122 | 122 | */ |
@@ -512,10 +512,10 @@ discard block |
||
| 512 | 512 | * |
| 513 | 513 | * @param integer|array $page_id |
| 514 | 514 | * The ID of the Page, or an array of ID's |
| 515 | - * @param array $select (optional) |
|
| 515 | + * @param string[] $select (optional) |
|
| 516 | 516 | * Accepts an array of columns to return from `tbl_pages`. If omitted, |
| 517 | 517 | * all columns from the table will be returned. |
| 518 | - * @return array|null |
|
| 518 | + * @return integer|null |
|
| 519 | 519 | * An associative array of Page information with the key being the column |
| 520 | 520 | * name from `tbl_pages` and the value being the data. If multiple Pages |
| 521 | 521 | * are found, an array of Pages will be returned. If no Pages are found |