1 |
<?php |
---|
2 |
/** |
---|
3 |
* Language Widget class |
---|
4 |
* |
---|
5 |
* @project CWC2 |
---|
6 |
* @revision $Id: Language.widget.php,v 1.4 2004/10/15 17:40:54 pspencer Exp $ |
---|
7 |
* @purpose Language Widget class |
---|
8 |
* @author DM Solutions Group (pspencer@dmsolutions.ca) |
---|
9 |
* @copyright |
---|
10 |
* <b>Copyright (c) 2002, DM Solutions Group Inc.</b> |
---|
11 |
* Permission is hereby granted, free of charge, to any person obtaining a |
---|
12 |
* copy of this software and associated documentation files (the "Software"), |
---|
13 |
* to deal in the Software without restriction, including without limitation |
---|
14 |
* the rights to use, copy, modify, merge, publish, distribute, sublicense, |
---|
15 |
* and/or sell copies of the Software, and to permit persons to whom the |
---|
16 |
* Software is furnished to do so, subject to the following conditions: |
---|
17 |
* |
---|
18 |
* The above copyright notice and this permission notice shall be included |
---|
19 |
* in all copies or substantial portions of the Software. |
---|
20 |
* |
---|
21 |
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
---|
22 |
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
---|
23 |
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
---|
24 |
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
---|
25 |
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
---|
26 |
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
---|
27 |
* DEALINGS IN THE SOFTWARE. |
---|
28 |
*/ |
---|
29 |
include_once(dirname(__FILE__)."/../Widget.php"); |
---|
30 |
|
---|
31 |
/** |
---|
32 |
* class Language is a hidden widget that sets the language for the |
---|
33 |
* current context |
---|
34 |
*/ |
---|
35 |
class Language extends CWCWidget |
---|
36 |
{ |
---|
37 |
|
---|
38 |
/** |
---|
39 |
* Construct a new Language instance |
---|
40 |
*/ |
---|
41 |
function Language() |
---|
42 |
{ |
---|
43 |
// invoke constructor of parent |
---|
44 |
parent::CWCWidget(); |
---|
45 |
|
---|
46 |
// set the description for this widget |
---|
47 |
$this->szWidgetDescription = <<<EOT |
---|
48 |
The Language widget functionality has been moved into the core of Chameleon |
---|
49 |
and is deprecated. Please remove it from your templates. |
---|
50 |
EOT; |
---|
51 |
$_SESSION['gErrorManager']->setError(ERR_WARNING, "WARNING: The LANGUAGE widget functionality is now part of the Chameleon core. This widget is deprecated and should be removed from your template." ); |
---|
52 |
|
---|
53 |
} |
---|
54 |
} |
---|
55 |
?> |
---|