Index: trunk/phase3/includes/db/DatabaseSqlite.php |
— | — | @@ -89,6 +89,8 @@ |
90 | 90 | |
91 | 91 | /** |
92 | 92 | * Close an SQLite database |
| 93 | + * |
| 94 | + * @return bool |
93 | 95 | */ |
94 | 96 | function close() { |
95 | 97 | $this->mOpened = false; |
— | — | @@ -111,7 +113,7 @@ |
112 | 114 | |
113 | 115 | /** |
114 | 116 | * Check if the searchindext table is FTS enabled. |
115 | | - * @returns false if not enabled. |
| 117 | + * @return false if not enabled. |
116 | 118 | */ |
117 | 119 | function checkForEnabledSearch() { |
118 | 120 | if ( self::$fulltextEnabled === null ) { |
— | — | @@ -165,6 +167,8 @@ |
166 | 168 | |
167 | 169 | /** |
168 | 170 | * @see DatabaseBase::isWriteQuery() |
| 171 | + * |
| 172 | + * @return bool |
169 | 173 | */ |
170 | 174 | function isWriteQuery( $sql ) { |
171 | 175 | return parent::isWriteQuery( $sql ) && !preg_match( '/^ATTACH\b/i', $sql ); |
— | — | @@ -489,6 +493,8 @@ |
490 | 494 | /** |
491 | 495 | * Get information about a given field |
492 | 496 | * Returns false if the field does not exist. |
| 497 | + * |
| 498 | + * @return SQLiteField|false |
493 | 499 | */ |
494 | 500 | function fieldInfo( $table, $field ) { |
495 | 501 | $tableName = $this->tableName( $table ); |
— | — | @@ -568,6 +574,10 @@ |
569 | 575 | return call_user_func_array( $function, $args ); |
570 | 576 | } |
571 | 577 | |
| 578 | + /** |
| 579 | + * @param $s string |
| 580 | + * @return string |
| 581 | + */ |
572 | 582 | protected function replaceVars( $s ) { |
573 | 583 | $s = parent::replaceVars( $s ); |
574 | 584 | if ( preg_match( '/^\s*(CREATE|ALTER) TABLE/i', $s ) ) { |
— | — | @@ -612,6 +622,8 @@ |
613 | 623 | |
614 | 624 | /* |
615 | 625 | * Build a concatenation list to feed into a SQL query |
| 626 | + * |
| 627 | + * @return string |
616 | 628 | */ |
617 | 629 | function buildConcat( $stringList ) { |
618 | 630 | return '(' . implode( ') || (', $stringList ) . ')'; |
— | — | @@ -641,6 +653,8 @@ |
642 | 654 | * |
643 | 655 | * @param $prefix Only show tables with this prefix, e.g. mw_ |
644 | 656 | * @param $fname String: calling function name |
| 657 | + * |
| 658 | + * @return array |
645 | 659 | */ |
646 | 660 | function listTables( $prefix = null, $fname = 'DatabaseSqlite::listTables' ) { |
647 | 661 | $result = $this->select( |