Movatterモバイル変換


[0]ホーム

URL:


Jump to content
MediaWiki
Search

Manual:Hooks/UserArrayFromResult

From mediawiki.org
<Manual:Hooks
UserArrayFromResult
Available fromversion 1.13.0
called when creating an UserArray object from a database result.
Define function:
publicstaticfunctiononUserArrayFromResult(&$userArray,$res){...}
Attach hook:Inextension.json:
{"Hooks":{"UserArrayFromResult":"MediaWiki\\Extension\\MyExtension\\Hooks::onUserArrayFromResult"}}
Called from:File(s):UserArray.php
Interface:UserArrayFromResultHook.php

For more information about attaching hooks, seeManual:Hooks.
For examples of extensions using this hook, seeCategory:UserArrayFromResult extensions.

Details

[edit]
  • &$userArray: set this to an object to override the default object returned
  • $res: database result used to create the object
Retrieved from "https://www.mediawiki.org/w/index.php?title=Manual:Hooks/UserArrayFromResult&oldid=4431892"
Categories:

[8]ページ先頭

©2009-2025 Movatter.jp