]> git.mxchange.org Git - shipsimu.git/blobdiff - inc/classes/main/helper/class_BaseHelper.php
Fixes for link helper
[shipsimu.git] / inc / classes / main / helper / class_BaseHelper.php
index c861e699ae4dcb879d8700bb013a26bb622f8597..af2a663ff219bbae58119d76d17b2ea8cf863b78 100644 (file)
@@ -313,6 +313,20 @@ class BaseHelper extends BaseFrameworkSystem {
                return $content;
        }
 
+       /**
+        * Checks wether the specified group is opened
+        *
+        * @param       $groupId        Id of group to check
+        * @return      $isOpened       Wether the specified group is open
+        */
+       protected function ifGroupIsOpened ($groupId) {
+               // Is the group open?
+               $isOpened = ((isset($this->groups[$groupId])) && ($this->groups[$groupId]['opened'] === true));
+
+               // Return status
+               return $isOpened;
+       }
+
        /**
         * Getter for direct field values
         *