Merge "Rewrite pref cleanup script"
[lhc/web/wiklou.git] / includes / context / MutableContext.php
1 <?php
2 /**
3 * Request-dependant objects containers.
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 * http://www.gnu.org/copyleft/gpl.html
19 *
20 * @since 1.26
21 *
22 * @file
23 */
24
25 interface MutableContext {
26
27 /**
28 * @param Config $config
29 */
30 public function setConfig( Config $config );
31
32 /**
33 * @param WebRequest $request
34 */
35 public function setRequest( WebRequest $request );
36
37 /**
38 * @param Title $title
39 */
40 public function setTitle( Title $title );
41
42 /**
43 * @param WikiPage $wikiPage
44 */
45 public function setWikiPage( WikiPage $wikiPage );
46
47 /**
48 * @param OutputPage $output
49 */
50 public function setOutput( OutputPage $output );
51
52 /**
53 * @param User $user
54 */
55 public function setUser( User $user );
56
57 /**
58 * @param Language|string $language Language instance or language code
59 */
60 public function setLanguage( $language );
61
62 /**
63 * @param Skin $skin
64 */
65 public function setSkin( Skin $skin );
66
67 }