aboutsummaryrefslogtreecommitdiffstats
path: root/includes/UserArray.php
Commit message (Collapse)AuthorAgeFilesLines
* Add a central ID lookup serviceBrad Jorsch2015-12-021-87/+0
| | | | | | | | | | | | | | | | Anything that wants to be "central" right now has to depend on CentralAuth, and then either can't work without CentralAuth or has to branch all over the place based on whether CentralAuth is present. Most of the time all it really needs is a mapping from local users to central user IDs and back or the ability to query whether the local user is attached on some other wiki, so let's make an interface for that in core. See I52aa0460 for an example implementation (CentralAuth), and Ibd192e29 for an example use (OAuth). Bug: T111302 Change-Id: I49568358ec35fdfd0b9e53e441adabded5c7b80f
* Add UserArray::newFromNames()Kunal Mehta2015-02-261-0/+21
| | | | Change-Id: I91bb8349dd846e982be9294c7f4f3858995ad2eb
* Replace wfRunHooks calls with direct Hooks::run callsAaron Schulz2014-12-101-1/+1
| | | | | | * This avoids the overhead of an extra function call Change-Id: I8ee996f237fd111873ab51965bded3d91e61e4dd
* Fixed some @params documentationumherirrender2014-04-141-3/+3
| | | | | | | | 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. Change-Id: I64e8cfe478cb0ba438f40b0631d6e9049cdab567
* Fixed spacingumherirrender2014-03-201-1/+1
| | | | | | | | - Added spaces after if/foreach/catch - Added new line before end of file - Added or removed spaces before/after parenthesis, comma - Added spaces around string concat Change-Id: I0590070f1b3542108e242730e8d9a3ba9831e94f
* Split Title and User ArrayFromResult classes to own filesaddshore2014-01-261-69/+2
| | | | Change-Id: I8744627330eb9c8f183a8d418d6eb168e6c5407b
* UserArray: Avoid * and double keys in selectumherirrender2013-12-141-2/+6
| | | | | | | | Use User::selectFields to get all fields instead of *, also use array_unqiue to make the sql nicer by having only single value in the IN statement. Change-Id: I0a4888be20f84f2955e82ced621aed526cc83f20
* Make (Title|User)Array implements CountableNiklas Laxström2013-12-121-1/+1
| | | | | | | count( $results ) always returned 1, now expected number Bug: 58377 Change-Id: I7d6b3bc1b09b46fe60cb5a74c25f9b28fffa5b73
* fix some spacingumherirrender2013-03-251-1/+1
| | | | | | | | | | | * Removed spaces around array index * Removed double spaces or added spaces to begin or end of function calls, method signature, conditions or foreachs * Added braces to one-line ifs * Changed multi line conditions to one line conditions * Realigned some arrays Change-Id: Ia04d2a99d663b07101013c2d53b3b2e872fd9cc3
* Added missing GPLv2 headers in some places.Alexandre Emsenhuber2012-05-091-0/+20
| | | | | | Also made file/class documentation more consistent. Change-Id: Ib46e50da4ec649a6a06cbeed00752effb79ed06e
* Reverted r108743 per CR comment. This should at least be discussed first.Aaron Schulz2012-01-121-0/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/108745
* Kill "* @return void"Sam Reed2012-01-121-1/+0
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/108743
* Documentation and type hinting.Happy-melon2011-10-061-0/+3
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/99099
* More parameter documentation!!Sam Reed2011-05-281-4/+23
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/89040
* More comment updates, addition of some braces alsoSam Reed2011-05-211-1/+11
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/88537
* (bug 10172) Move setting the "changed since last visit" flags out of the job ↵Roan Kattouw2009-03-021-0/+11
| | | | | | | | | | | | queue: * Move up the UPDATE query on wl_notificationtimestamp up to before scheduling the EnotifyNotifyJob * Move up the SELECT query fetching the users to be notified to before the UPDATE, and use its result for a more efficient UPDATE * Pass actuallyNotifyOnPageChange() and the EnotifyNotifyJob an array of user IDs * Add UserArray::newFromIDs() Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/47927
* Revert r38165 for now, breaks CentralAuth and I don't have that installed ↵Aryeh Gregor2008-07-291-0/+66
| | | | | | | anywhere to debug. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/38185
* Merge TitleArray and UserArray into one unified class, ObjectArray. Adding ↵Aryeh Gregor2008-07-291-66/+0
| | | | | | | support for a new type of object will now just take a few lines. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/38165
* * Add count() method to TitleArray and UserArray.Aryeh Gregor2008-07-271-0/+4
| | | | | | | | | | * Change PageHistory::fetchRevisions() to return a result object instead of an array of rows. * Stylistic issues: use foreach( $res as $row ) instead of while( $row = $dbr->fetchObject( $res ) ), change a couple of variable names, use __METHOD__. There should be no functional changes. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/38107
* In User:Tim Starling2008-04-151-0/+62
* Defer load of groups data * Introduce newFromRow()/loadFromRow() to allow bulk loading of user objects from a result set * Hook email and email authentication save/load to allow CentralAuth to provide a global email address * Defer save of user data after confirmEmail() and invalidateEmail(). Caller must now also call saveSettings(). This reduces the master query count in some code paths. Elsewhere: * Introduce UserArray class, for bulk loading of user objects. Immediately useful in email notification, potentially useful for proposed user alias feature. * In Special:Confirmemail, remove useless handling for impossible false return from confirmEmail()/invalidateEmail(). Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/33333