comparison Flag.inc @ 79:9b490aa11124

Branch merge.
author Tom Fredrik "BFG" Klaussen <bfg@blenning.no>
date Fri, 12 Oct 2012 16:47:25 +0200
parents 7c68015b211a 9d766788f0bc
children b9654b9c4a66
comparison
equal deleted inserted replaced
78:7c68015b211a 79:9b490aa11124
5 */ 5 */
6 define(DEBUG,0); 6 define(DEBUG,0);
7 7
8 include_once 'CacheTimeCheck.inc'; 8 include_once 'CacheTimeCheck.inc';
9 9
10 /// @cond
10 $scriptCache = ScriptIncludeCache::instance(__FILE__); 11 $scriptCache = ScriptIncludeCache::instance(__FILE__);
11 $scriptCache->includeOnce('Language.inc'); 12 $scriptCache->includeOnce('Language.inc');
12 $scriptCache->includeOnce('common-functions.inc'); 13 $scriptCache->includeOnce('common-functions.inc');
13 $scriptCache->includeOnce('Page.inc'); 14 $scriptCache->includeOnce('Page.inc');
15 /// @endcond
14 16
17 /**
18 * Functionality for generating a flag based on state options
19 */
15 class Flag extends Page 20 class Flag extends Page
16 { 21 {
17 private $active; 22 private $active;
18 private $lang; 23 private $lang;
19 24
25 /**
26 * Constructs a flag object
27 *
28 * @param $masterCache link this objects cache to this masterCache
29 */
20 function __construct($masterCache) 30 function __construct($masterCache)
21 { 31 {
22 $this->active = $_GET['active']; 32 $this->active = $_GET['active'];
23 $lang = $_GET['lang']; 33 $lang = $_GET['lang'];
24 34
54 function mayCompress() 64 function mayCompress()
55 { 65 {
56 return false; 66 return false;
57 } 67 }
58 68
69 /**
70 * Produce the actual content
71 */
59 function generateContent() 72 function generateContent()
60 { 73 {
61 74
62 $flag = loadFile($this->name); 75 $flag = loadFile($this->name);
63 76