Index: trunk/phase3/includes/RecentChange.php |
— | — | @@ -256,7 +256,7 @@ |
257 | 257 | * |
258 | 258 | * @param $change Mixed: RecentChange or corresponding rc_id |
259 | 259 | * @param $auto Boolean: for automatic patrol |
260 | | - * @return See doMarkPatrolled(), or null if $change is not an existing rc_id |
| 260 | + * @return Array See doMarkPatrolled(), or null if $change is not an existing rc_id |
261 | 261 | */ |
262 | 262 | public static function markPatrolled( $change, $auto = false ) { |
263 | 263 | $change = $change instanceof RecentChange |
Index: trunk/phase3/includes/api/ApiQueryRecentChanges.php |
— | — | @@ -44,6 +44,9 @@ |
45 | 45 | private $fld_comment = false, $fld_parsedcomment = false, $fld_user = false, $fld_userid = false, |
46 | 46 | $fld_flags = false, $fld_timestamp = false, $fld_title = false, $fld_ids = false, |
47 | 47 | $fld_sizes = false, $fld_redirect = false, $fld_patrolled = false, $fld_loginfo = false, $fld_tags = false; |
| 48 | + |
| 49 | + private $tokenFunctions; |
| 50 | + |
48 | 51 | /** |
49 | 52 | * Get an array mapping token names to their handler functions. |
50 | 53 | * The prototype for a token function is func($pageid, $title, $rc) |
Index: trunk/phase3/includes/api/ApiDelete.php |
— | — | @@ -158,6 +158,15 @@ |
159 | 159 | return array( array( 'cannotdelete', $article->mTitle->getPrefixedText() ) ); |
160 | 160 | } |
161 | 161 | |
| 162 | + /** |
| 163 | + * @static |
| 164 | + * @param $token |
| 165 | + * @param $title |
| 166 | + * @param $oldimage |
| 167 | + * @param $reason |
| 168 | + * @param $suppress bool |
| 169 | + * @return \type|array|Title |
| 170 | + */ |
162 | 171 | public static function deleteFile( $token, &$title, $oldimage, &$reason = null, $suppress = false ) { |
163 | 172 | $errors = self::getPermissionsError( $title, $token ); |
164 | 173 | if ( count( $errors ) ) { |
Index: trunk/phase3/includes/api/ApiQueryLogEvents.php |
— | — | @@ -180,6 +180,15 @@ |
181 | 181 | $this->getResult()->setIndexedTagName_internal( array( 'query', $this->getModuleName() ), 'item' ); |
182 | 182 | } |
183 | 183 | |
| 184 | + /** |
| 185 | + * @static |
| 186 | + * @param $result ApiResult |
| 187 | + * @param $vals |
| 188 | + * @param $params |
| 189 | + * @param $type |
| 190 | + * @param $ts |
| 191 | + * @return array |
| 192 | + */ |
184 | 193 | public static function addLogParams( $result, &$vals, $params, $type, $ts ) { |
185 | 194 | $params = explode( "\n", $params ); |
186 | 195 | switch ( $type ) { |
Index: trunk/phase3/includes/api/ApiMain.php |
— | — | @@ -448,7 +448,7 @@ |
449 | 449 | /** |
450 | 450 | * Replace the result data with the information about an exception. |
451 | 451 | * Returns the error code |
452 | | - * @param $e MWException |
| 452 | + * @param $e Exception |
453 | 453 | */ |
454 | 454 | protected function substituteResultWithError( $e ) { |
455 | 455 | // Printer may not be initialized if the extractRequestParams() fails for the main module |
Index: trunk/phase3/includes/api/ApiQueryInfo.php |
— | — | @@ -41,6 +41,8 @@ |
42 | 42 | $fld_readable = false, $fld_watched = false, |
43 | 43 | $fld_preload = false, $fld_displaytitle = false; |
44 | 44 | |
| 45 | + private $tokenFunctions; |
| 46 | + |
45 | 47 | public function __construct( $query, $moduleName ) { |
46 | 48 | parent::__construct( $query, $moduleName, 'in' ); |
47 | 49 | } |