Manual:Hooks/LocalFile::getHistory

From MediaWiki.org
Jump to: navigation, search
LocalFile::getHistory
Available from version 1.13.0
Called before file history query performed.

Define function:
public static function onLocalFile::getHistory( $file, $tables, $fields, $conds, $opts, $join_conds ) { ... }

Attach hook:
$wgHooks['LocalFile::getHistory'][] = 'MyExtensionHooks::onLocalFile::getHistory';
Called from: LocalFile.php

For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:LocalFile::getHistory extensions.


[edit] Details

  • $file: the file
  • $tables: tables
  • $fields: select fields
  • $conds: conditions
  • $opts: query options
  • $join_conds: JOIN conditions
Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox