# HG changeset patch # User Tom Fredrik "BFG" Klaussen # Date 1350053245 -7200 # Node ID 9b490aa11124a1510b2f565526d7e71ae9aa5a39 # Parent 7c68015b211acae555ac44539f378a727e83b78a# Parent 9d766788f0bc4a9b4cd39c935a28f58b5dc3b93d Branch merge. diff -r 7c68015b211a -r 9b490aa11124 Flag.inc --- a/Flag.inc Fri Oct 12 16:43:26 2012 +0200 +++ b/Flag.inc Fri Oct 12 16:47:25 2012 +0200 @@ -7,16 +7,26 @@ include_once 'CacheTimeCheck.inc'; +/// @cond $scriptCache = ScriptIncludeCache::instance(__FILE__); $scriptCache->includeOnce('Language.inc'); $scriptCache->includeOnce('common-functions.inc'); $scriptCache->includeOnce('Page.inc'); +/// @endcond +/** + * Functionality for generating a flag based on state options + */ class Flag extends Page { private $active; private $lang; + /** + * Constructs a flag object + * + * @param $masterCache link this objects cache to this masterCache + */ function __construct($masterCache) { $this->active = $_GET['active']; @@ -56,6 +66,9 @@ return false; } + /** + * Produce the actual content + */ function generateContent() { diff -r 7c68015b211a -r 9b490aa11124 flag.php --- a/flag.php Fri Oct 12 16:43:26 2012 +0200 +++ b/flag.php Fri Oct 12 16:47:25 2012 +0200 @@ -7,8 +7,10 @@ include_once 'CacheTimeCheck.inc'; +/// @cond $scriptCache = ScriptIncludeCache::instance(__FILE__); $scriptCache->includeOnce('Flag.inc'); $flag = new Flag($scriptCache); -print $flag->genPage(); \ No newline at end of file +$flag->genPage(); +/// @endcond