Index: trunk/phase3/includes/RequestContext.php |
— | — | @@ -126,6 +126,15 @@ |
127 | 127 | } |
128 | 128 | |
129 | 129 | /** |
| 130 | + * Set the Language object |
| 131 | + * |
| 132 | + * @param $l Language |
| 133 | + */ |
| 134 | + public function setLang( Language $l ) { |
| 135 | + $this->lang = $l; |
| 136 | + } |
| 137 | + |
| 138 | + /** |
130 | 139 | * Get the Language object |
131 | 140 | * |
132 | 141 | * @return Language |
— | — | @@ -159,6 +168,16 @@ |
160 | 169 | } |
161 | 170 | |
162 | 171 | /** |
| 172 | + * Set the Skin object |
| 173 | + * |
| 174 | + * @param $s Skin |
| 175 | + */ |
| 176 | + public function setSkin( Skin $s ) { |
| 177 | + $this->skin = clone $s; |
| 178 | + $this->skin->setContext( $this ); |
| 179 | + } |
| 180 | + |
| 181 | + /** |
163 | 182 | * Get the Skin object |
164 | 183 | * |
165 | 184 | * @return Skin |