@@ -57,7 +57,7 @@ discard block  | 
                                                    ||
| 57 | 57 | *  | 
                                                        
| 58 | 58 | * @param string $type  | 
                                                        
| 59 | 59 |       *  The field handle, that is, `field.{$handle}.php` | 
                                                        
| 60 | - * @return string|boolean  | 
                                                        |
| 60 | + * @return string|false  | 
                                                        |
| 61 | 61 | */  | 
                                                        
| 62 | 62 | public static function __getClassPath($type)  | 
                                                        
| 63 | 63 |      { | 
                                                        
@@ -111,7 +111,7 @@ discard block  | 
                                                    ||
| 111 | 111 | * @throws DatabaseException  | 
                                                        
| 112 | 112 | * @param array $fields  | 
                                                        
| 113 | 113 | * Associative array of field names => values for the Field object  | 
                                                        
| 114 | - * @return integer|boolean  | 
                                                        |
| 114 | + * @return false|string  | 
                                                        |
| 115 | 115 | * Returns a Field ID of the created Field on success, false otherwise.  | 
                                                        
| 116 | 116 | */  | 
                                                        
| 117 | 117 | public static function add(array $fields)  | 
                                                        
@@ -138,7 +138,7 @@ discard block  | 
                                                    ||
| 138 | 138 | * @param array $settings  | 
                                                        
| 139 | 139 | * An associative array of settings, where the key is the column name  | 
                                                        
| 140 | 140 | * and the value is the value.  | 
                                                        
| 141 | - * @return boolean  | 
                                                        |
| 141 | + * @return PDOStatement  | 
                                                        |
| 142 | 142 | * True on success, false on failure  | 
                                                        
| 143 | 143 | */  | 
                                                        
| 144 | 144 | public static function saveSettings($field_id, $settings)  | 
                                                        
@@ -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  | 
                                                        
@@ -30,7 +30,7 @@ discard block  | 
                                                    ||
| 30 | 30 | * An associative of settings for a section with the key being  | 
                                                        
| 31 | 31 | * a column name from `tbl_sections`  | 
                                                        
| 32 | 32 | * @throws DatabaseException  | 
                                                        
| 33 | - * @return integer  | 
                                                        |
| 33 | + * @return false|string  | 
                                                        |
| 34 | 34 | * The newly created Section's ID  | 
                                                        
| 35 | 35 | */  | 
                                                        
| 36 | 36 | public static function add(array $settings)  | 
                                                        
@@ -184,7 +184,7 @@ discard block  | 
                                                    ||
| 184 | 184 | *  | 
                                                        
| 185 | 185 | * @param string $handle  | 
                                                        
| 186 | 186 | * The handle of the section  | 
                                                        
| 187 | - * @return integer  | 
                                                        |
| 187 | + * @return string  | 
                                                        |
| 188 | 188 | * The Section ID  | 
                                                        
| 189 | 189 | */  | 
                                                        
| 190 | 190 | public static function fetchIDFromHandle($handle)  | 
                                                        
@@ -277,7 +277,7 @@ discard block  | 
                                                    ||
| 277 | 277 | * @param integer $field_id  | 
                                                        
| 278 | 278 | * the field ID of the linked section's linked field.  | 
                                                        
| 279 | 279 | * @throws DatabaseException  | 
                                                        
| 280 | - * @return boolean  | 
                                                        |
| 280 | + * @return PDOStatement  | 
                                                        |
| 281 | 281 | */  | 
                                                        
| 282 | 282 | public static function removeSectionAssociation($field_id)  | 
                                                        
| 283 | 283 |      { |