]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/chat/class_BaseNodeChat.php
Don't miss it ... :(
[hub.git] / application / hub / main / chat / class_BaseNodeChat.php
index 3620b2b3ac7a51afdfcfc0cbda3be30421bed81c..a1b00441785f04be0c02faac8165bc894dedee7b 100644 (file)
@@ -4,7 +4,7 @@
  *
  * @author             Roland Haeder <webmaster@ship-simu.org>
  * @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
  *
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 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]