2011-09-15 17:42:17 +00:00
|
|
|
<?php
|
|
|
|
|
/**
|
|
|
|
|
* Request-dependant objects containers.
|
|
|
|
|
*
|
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
|
* (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
|
* http://www.gnu.org/copyleft/gpl.html
|
|
|
|
|
*
|
|
|
|
|
* @since 1.18
|
|
|
|
|
*
|
|
|
|
|
* @author Happy-melon
|
|
|
|
|
* @file
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Interface for objects which can provide a context on request.
|
|
|
|
|
*/
|
|
|
|
|
interface IContextSource {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get the WebRequest object
|
|
|
|
|
*
|
|
|
|
|
* @return WebRequest
|
|
|
|
|
*/
|
|
|
|
|
public function getRequest();
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get the Title object
|
|
|
|
|
*
|
|
|
|
|
* @return Title
|
|
|
|
|
*/
|
|
|
|
|
public function getTitle();
|
|
|
|
|
|
2012-01-06 20:00:04 +00:00
|
|
|
/**
|
|
|
|
|
* Get the WikiPage object
|
|
|
|
|
*
|
|
|
|
|
* @since 1.19
|
|
|
|
|
* @return WikiPage
|
|
|
|
|
*/
|
|
|
|
|
public function getWikiPage();
|
|
|
|
|
|
2011-09-15 17:42:17 +00:00
|
|
|
/**
|
|
|
|
|
* Get the OutputPage object
|
|
|
|
|
*
|
|
|
|
|
* @return OutputPage object
|
|
|
|
|
*/
|
|
|
|
|
public function getOutput();
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get the User object
|
|
|
|
|
*
|
|
|
|
|
* @return User
|
|
|
|
|
*/
|
|
|
|
|
public function getUser();
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get the Language object
|
|
|
|
|
*
|
2011-11-21 16:13:21 +00:00
|
|
|
* @deprecated 1.19 Use getLanguage instead
|
2011-09-15 17:42:17 +00:00
|
|
|
* @return Language
|
|
|
|
|
*/
|
|
|
|
|
public function getLang();
|
|
|
|
|
|
2011-11-21 16:13:21 +00:00
|
|
|
/**
|
|
|
|
|
* Get the Language object
|
|
|
|
|
*
|
|
|
|
|
* @return Language
|
2011-12-05 18:56:09 +00:00
|
|
|
* @since 1.19
|
2011-11-21 16:13:21 +00:00
|
|
|
*/
|
|
|
|
|
public function getLanguage();
|
|
|
|
|
|
2011-09-15 17:42:17 +00:00
|
|
|
/**
|
|
|
|
|
* Get the Skin object
|
|
|
|
|
*
|
|
|
|
|
* @return Skin
|
|
|
|
|
*/
|
|
|
|
|
public function getSkin();
|
2012-01-13 02:37:04 +00:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get a Message object with context set
|
|
|
|
|
*
|
|
|
|
|
* @return Message object
|
|
|
|
|
*/
|
|
|
|
|
public function msg();
|
2011-09-15 17:42:17 +00:00
|
|
|
}
|
|
|
|
|
|