X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=application%2Fhub%2Fmain%2Fchat%2Fclass_BaseNodeChat.php;h=a1b00441785f04be0c02faac8165bc894dedee7b;hb=84793f18b7e4a5d75dc05353d95ed4b524729a72;hp=3620b2b3ac7a51afdfcfc0cbda3be30421bed81c;hpb=a0a0a197ca9f858041e636e47e3cc46d3d628d6c;p=hub.git diff --git a/application/hub/main/chat/class_BaseNodeChat.php b/application/hub/main/chat/class_BaseNodeChat.php index 3620b2b3a..a1b004417 100644 --- a/application/hub/main/chat/class_BaseNodeChat.php +++ b/application/hub/main/chat/class_BaseNodeChat.php @@ -4,7 +4,7 @@ * * @author Roland Haeder * @version 0.0.0 - * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2011 Hub Developer Team + * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2012 Hub Developer Team * @license GNU GPL 3.0 or any newer version * @link http://www.ship-simu.org * @@ -22,6 +22,11 @@ * along with this program. If not, see . */ class BaseNodeChat extends BaseHubSystem { + /** + * Whether this Chatter is active + */ + private $isActive = false; + /** * Protected constructor * @@ -32,6 +37,25 @@ class BaseNodeChat extends BaseHubSystem { // Call parent constructor parent::__construct($className); } + + /** + * Enables/disables the chatter (just sets a flag) + * + * @param $version Version number of this chatter + * @return void + */ + public final function enableIsActive ($isActive = true) { + $this->isActive = (bool) $isActive; + } + + /** + * Determines whether the chatter is active + * + * @return $isActive Whether the chatter is active + */ + public final function isActive () { + return $this->isActive; + } } // [EOF]