Index: branches/resourceloader/phase3/includes/ResourceLoaderContext.php |
— | — | @@ -0,0 +1,60 @@ |
| 2 | +<?php |
| 3 | +/** |
| 4 | + * This program is free software; you can redistribute it and/or modify |
| 5 | + * it under the terms of the GNU General Public License as published by |
| 6 | + * the Free Software Foundation; either version 2 of the License, or |
| 7 | + * (at your option) any later version. |
| 8 | + * |
| 9 | + * This program is distributed in the hope that it will be useful, |
| 10 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | + * GNU General Public License for more details. |
| 13 | + * |
| 14 | + * You should have received a copy of the GNU General Public License along |
| 15 | + * with this program; if not, write to the Free Software Foundation, Inc., |
| 16 | + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 17 | + * http://www.gnu.org/copyleft/gpl.html |
| 18 | + * |
| 19 | + * @author Trevor Parscal |
| 20 | + * @author Roan Kattouw |
| 21 | + */ |
| 22 | + |
| 23 | +/** |
| 24 | + * Object passed around to modules which contains information about the state of a specific loader request |
| 25 | + */ |
| 26 | +class ResourceLoaderContext { |
| 27 | + |
| 28 | + protected $request; |
| 29 | + protected $server; |
| 30 | + protected $lang; |
| 31 | + protected $skin; |
| 32 | + protected $debug; |
| 33 | + protected $only; |
| 34 | + |
| 35 | + public function __construct( WebRequest $request, $server, $lang, $skin, $debug, $only ) { |
| 36 | + $this->request = $request; |
| 37 | + $this->server = $server; |
| 38 | + $this->lang = $lang; |
| 39 | + $this->skin = $skin; |
| 40 | + $this->debug = $debug; |
| 41 | + $this->only = $only; |
| 42 | + } |
| 43 | + public function getRequest() { |
| 44 | + return $this->request; |
| 45 | + } |
| 46 | + public function getServer() { |
| 47 | + return $this->server; |
| 48 | + } |
| 49 | + public function getLanguage() { |
| 50 | + return $this->lang; |
| 51 | + } |
| 52 | + public function getSkin() { |
| 53 | + return $this->request; |
| 54 | + } |
| 55 | + public function getDebug() { |
| 56 | + return $this->debug; |
| 57 | + } |
| 58 | + public function getOnly() { |
| 59 | + return $this->only; |
| 60 | + } |
| 61 | +} |
\ No newline at end of file |
Property changes on: branches/resourceloader/phase3/includes/ResourceLoaderContext.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 62 | + native |