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

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
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
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
All All
: Normal enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch, patch-need-review
Depends on:
  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: ---

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

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]

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]

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]

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 (
* UserSaveOptions (
* UserLoadFromDatabase (

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