Commit graph

23 commits

Author SHA1 Message Date
Aaron Schulz
b614290f73 Converted User object cache to the WAN cache
Bug: T93141
Change-Id: I93dc5367d85d661bd5bdce29f4665bb8cd21ba02
2015-04-30 01:30:06 +00:00
Amir E. Aharoni
2655ef17da Shorten long lines in UserRightsProxy.php to make phpcs pass
Change-Id: Ib9c2b2ed4bdfe895764a3af6444e48522f4808d7
2015-03-04 04:26:47 +00:00
Marius Hoch
f4e7729657 Make UserRightsProxy::addGroup/removeGroup return bool
Required as of e0094618b5

Change-Id: I0cf9d8ee3ef9796d47442baff12a6cf8ae425d37
2015-02-11 02:14:27 +01:00
UltrasonicNXT
9d68a8718f Fix userrights-interwiki when the 'user' table is shared
At present, this function selects the user table from the same DB as the
user_groups, however, in wikifarms this is not often the case, as the user
table is often shared, but the user_groups table not. Adding a check in
here, and passing the shared table, if needed, ONLY to the user query,
should fix.

Change-Id: Ib85630067c402b8e4f50ff11a33fe7f0eadd4f16
2014-08-10 12:01:25 +00:00
umherirrender
a3983418d5 Fixed some @params documentation (includes/*)
Swapped some "$var type" to "type $var" or added missing types
before the $var. Changed some other types to match the more common
spelling. Makes beginning of some text in captial.
Also added some missing @param.

Change-Id: I0056b4a8df243cfc0c5f25378de48f7a35170aca
2014-04-22 13:07:02 +02:00
Reedy
064b2fe1f0 Actually use $ignoreInvalidDB in UserRightProxy::getDB()
Parameter is exposed via other public methods

Change-Id: Ie8edf7005596b2f3c04476e3c50781ead31b5fc2
2013-08-10 14:49:21 +00:00
umherirrender
ef2f507d23 Fixed spacing in files direct in includes folder
Added spaces before if, foreach
Added some braces for one line statements

Change-Id: Ibb8dd102db045522d12ff939075ba7420d95ab6b
2013-04-21 06:38:49 +00:00
Tyler Anthony Romeo
4dcc7961df Fixed @param tags to conform with Doxygen format.
Doxygen expects parameter types to come before the
parameter name in @param tags. Used a quick regex
to switch everything around where possible. This
only fixes cases where a primitve variable (or a
primitive followed by other types) is the variable
type. Other cases will need to be fixed manually.

Change-Id: Ic59fd20856eb0489d70f3469a56ebce0efb3db13
2013-03-11 13:15:01 -04:00
Alexandre Emsenhuber
2040d1337e Added missing GPLv2 headers in some places.
Also made file/class documentation more consistent.

Change-Id: Ib46e50da4ec649a6a06cbeed00752effb79ed06e
2012-05-09 20:11:36 +02:00
Sam Reed
09a78c1368 More return documentation 2012-02-09 21:36:14 +00:00
Sam Reed
96641da58e Add, update, tweak documentation
Fix document comment blocks

Tweak some returns
2011-10-26 03:44:47 +00:00
Sam Reed
a2589ff8c6 Assignment in loop conditions suck
while ( $row = $dbw->fetchObject( $res ) ) { to foreach ( $res as $row ) in includes

Add some braces
2010-10-13 23:11:40 +00:00
Roan Kattouw
0e41ab8932 Hack up UserRightsProxy to support setting preferences of remote users, needed for a feature in PrefSwitch I'm about to commit. The way this hacks around UserRightsProxy's 'helpful' behavior of refusing to work with wikis not in $wgLoclDatabases is kinda ugly (I'm open to alternative suggestions), but then this entire class is an ugly hack and should be replaced by something more sane (even brion, its author, agrees with this :P) 2010-08-07 16:08:22 +00:00
Roan Kattouw
3567e37eb3 wfForeignMemcKey() just exists, we don't have to keep around crazy back compat for that 2010-08-06 16:02:42 +00:00
Sam Reed
04f68827d0 Removal of unused globals
Removal of one setting of a variable to '', then not using further
2010-07-24 19:11:52 +00:00
Alexandre Emsenhuber
5fc268d803 document a bit 2010-01-12 21:49:47 +00:00
Aaron Schulz
ca2ecb1ec8 Missing commit for r56798 2009-09-23 03:42:18 +00:00
Alexandre Emsenhuber
3ad85f1a20 Fixed Doxygen warnings 2008-06-02 17:50:59 +00:00
Siebrand Mazeland
79d5225c0e * remove end of line whitespace
* remove empty lines at end of file
* remove "?>" where still present
2008-04-14 07:45:50 +00:00
Tim Starling
fbfb509df5 * Introduced LBFactory -- an abstract class for configuring database load balancers and connecting to foreign DBs.
* Wrote two concrete implementations. LBFactory_Simple is for general installations. LBFactory_Multi will replace the runtime configuration used on Wikimedia and allow load-balanced connections to any DB. 
* Ported Special:Userrights, CentralAuth and OAI audit to the LBFactory system. 
* Added ForeignDBViaLBRepo, a file repository which uses LBFactory.
* Removed $wgLoadBalancer and $wgAlternateMaster
* Improved the query group concept to allow failover and lag control
* Improved getReaderIndex(), it will now try all servers before waiting, instead of waiting after each.
* Removed the $fail parameter to getConnection(), obsolete. 
* Removed the useless force() function. 
* Abstracted the replication position interface to allow for future non-MySQL support.
* Rearranged Database.php. Added a few debugging features. 
* Removed ancient benet-specific hack from waitForSlave.php
2008-03-30 09:48:15 +00:00
Victor Vasiliev
1dc3ccd2e1 Let it be public, for CrosswikiBlock extension 2008-02-23 16:25:27 +00:00
Brion Vibber
e2a6de127d use self::, not $this-> in static methods, so interwiki userrights actually works again :) 2007-12-27 04:18:22 +00:00
Brion Vibber
c9bcade8e5 Refactor some of the horror that was Special:Userrights...
Split out the remote accessors into a UserRightsProxy object, so the main interface code
doesn't have to worry about it -- it just uses the regular User object interface functions,
without caring that it's got a remote object here.
Should have cleaner behavior with numeric ID accesses as well; it now does a name lookup even for remote ones, and logs with that.
2007-12-27 02:31:58 +00:00