Jump to content

Manuel:IContextSource.php

From mediawiki.org
This page is a translated version of the page Manual:IContextSource.php and the translation is 50% complete.

Le fichier IContextSource.php contient l'interface IContextSource, pour les objets pouvant fournir un contexte à la demande.

Example

You may want to access IContextSource if you are writing an API which uses type hinting in the arguments or makes instanceof checks:

if ( $arg instanceof IContextSource ) {
  // Treat $arg as a context object
}
function foo( IContextSource $context ) {
  // Use $context as the request context
}

Implemented by