Last modified: 2009-08-24 16:31:02 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T10468, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 8468 - Add various hooks to User class methods to allow customising the object
Add various hooks to User class methods to allow customising the object
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.9.x
All All
: Normal enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch, patch-need-review
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-01-03 06:10 UTC by Dan Li
Modified: 2009-08-24 16:31 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
patch (402 bytes, patch)
2007-01-03 06:12 UTC, Dan Li
Details
patch (1.72 KB, patch)
2007-01-03 07:19 UTC, Dan Li
Details
patch (1.91 KB, patch)
2007-01-03 07:58 UTC, Dan Li
Details

Description Dan Li 2007-01-03 06:10:41 UTC
The Article class has hooks ArticlePageDataBefore and ArticlePageDataAfter to
allow extensions to make use of custom fields added to the page SQL table. A
similar hook for the User class would be very useful to let add more properties
to a "user."
Comment 1 Dan Li 2007-01-03 06:12:27 UTC
Created attachment 3005 [details]
patch

Proposed hook.

(By the way, that should have been "...let extensions add..." earlier.)
Comment 2 Dan Li 2007-01-03 07:19:49 UTC
Created attachment 3006 [details]
patch

Oops. New properties won't be of much use if they can't be saved ;) .
Comment 3 Dan Li 2007-01-03 07:58:55 UTC
Created attachment 3007 [details]
patch

Added another hook to set default values. I think I'm done now.
Comment 4 Alexandre Emsenhuber [IAlex] 2009-08-24 16:31:02 UTC
Marking bug as FIXED, all the hooks in your patch now have an equivalent in MediaWiki:
* UserLoadDefault (http://www.mediawiki.org/wiki/Manual:Hooks/UserLoadDefaults)
* UserSaveOptions (http://www.mediawiki.org/wiki/Manual:Hooks/UserSaveOptions)
* UserLoadFromDatabase (http://www.mediawiki.org/wiki/Manual:Hooks/UserLoadFromDatabase)

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links