< Manual:Hooks
| This deprecated feature should no longer be used, but is still available for reasons of backwards compatibility. This feature was deprecated in version 1.37.0. See 5d1bada. |
| 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: | In extension.json:
{
"Hooks": {
"LocalFile::getHistory": "MyExtensionHooks::onLocalFilegetHistory"
}
}
|
| Called from: | File(s): LocalFile.php |
| Interface: | LocalFile__getHistoryHook.php |
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:LocalFile::getHistory extensions.
Details
- $file: the file
- $tables: tables
- $fields: select fields
- $conds: conditions
- $opts: query options
- $join_conds: JOIN conditions
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.