Manual:Hooks/MovePageCheckPermissions/ja

From Linux Web Expert

The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
MovePageCheckPermissions
<translate> Available from <tvar name=1><translate> version <tvar </tvar></translate>
Specify whether the user is allowed to move the page.
<translate> Define function:</translate>
public static function onMovePageCheckPermissions( Title $oldTitle, Title $newTitle, User $user, $reason, Status $status ) { ... }
<translate> Attach hook:</translate> <translate> In <tvar name=1>extension.json</tvar>:</translate>
{
	"Hooks": {
		"MovePageCheckPermissions": "MediaWiki\\Extension\\MyExtension\\Hooks::onMovePageCheckPermissions"
	}
}
<translate> Called from:</translate> <translate> File(s):</translate> MovePage.php
<translate> Interface:</translate> MovePageCheckPermissionsHook.php

<translate> For more information about attaching hooks, see <tvar name=1>Manual:フック </tvar>.</translate>
<translate> For examples of extensions using this hook, see <tvar name=cat>Category:MovePageCheckPermissions extensions/ja</tvar>.</translate>

詳細

  • $oldTitle: Title object of the current (old) location
  • $newTitle: Title object of the new location
  • $user: User making the move
  • $reason: string of the reason provided by the user
  • $status: Status object to pass error messages to