Add some documentation
authorSam Reed <reedy@users.mediawiki.org>
Wed, 1 Jun 2011 16:40:59 +0000 (16:40 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Wed, 1 Jun 2011 16:40:59 +0000 (16:40 +0000)
commit289af6c964b8309e77545dc8c3797dc6f160975a
tree7090d662f06cf9fd3827b1f3db4c663b910506e9
parent94bf573c03f7c8a538af1a93511c014a8f22d4b9
Add some documentation

Swap if ( $foo ) { $this->addFields( 'foo' ); } for $this->addFieldsIf( 'foo', $foo ); etc

Also swap $this->addFieldsIf( 'foo', $foo ); $this->addFieldsIf( 'foo2', $foo ); for $this->addFieldsIf( array( 'foo', 'foo2' ), $foo );

Micro-optimisation and readability!
includes/api/ApiQueryBase.php
includes/api/ApiQueryBlocks.php
includes/api/ApiQueryDeletedrevs.php
includes/api/ApiQueryFilearchive.php
includes/api/ApiQueryLogEvents.php
includes/api/ApiQueryRecentChanges.php
includes/api/ApiQueryTags.php
includes/api/ApiQueryUserContributions.php
includes/api/ApiQueryWatchlist.php