MediaWiki
REL1_40
ArticleFromTitleHook.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\Page\Hook
;
4
5
use
Article
;
6
use
IContextSource
;
7
use
MediaWiki\Title\Title
;
8
16
interface
ArticleFromTitleHook
{
28
public
function
onArticleFromTitle
(
$title
, &$article, $context );
29
}
Article
Legacy class representing an editable page and handling UI for some page actions.
Definition
Article.php:56
MediaWiki\Title\Title
Represents a title within MediaWiki.
Definition
Title.php:82
IContextSource
Interface for objects which can provide a MediaWiki context on request.
Definition
IContextSource.php:60
MediaWiki\Page\Hook\ArticleFromTitleHook
This is a hook handler interface, see docs/Hooks.md.
Definition
ArticleFromTitleHook.php:16
MediaWiki\Page\Hook\ArticleFromTitleHook\onArticleFromTitle
onArticleFromTitle( $title, &$article, $context)
This hook is called when creating an article object from a title object using Wiki::articleFromTitle(...
MediaWiki\Page\Hook
Definition
Article__MissingArticleConditionsHook.php:3
$title
$title
Definition
testCompression.php:39
includes
page
Hook
ArticleFromTitleHook.php
Generated on Thu Jun 27 2024 14:03:29 for MediaWiki by
1.10.0