コード例 #1
0
 /**
  * Recursive helper function for sub user group determination.
  * This function does the actual determination of the user subgroups.
  *
  * @author  Martin Helmich <*****@*****.**>
  * @version 2007-11-24
  * @param   mixed  $group Same as the parameter of getSubUserGroups.
  * @return  string        A part of the user group list.
  * @deprecated Not in use
  */
 function getSubUserGroupsR($group)
 {
     $result = '';
     if (strstr($group, ',') !== false) {
         $groups = GeneralUtility::intExplode(',', $group);
         foreach ($groups as $sGroup) {
             $result .= tx_mmforum_tools::getSubUserGroupsR($sGroup);
         }
     } else {
         $groupData = tx_mmforum_tools::getUserGroup($group);
         if (strlen($groupData['subgroup']) > 0) {
             $result = $group . ',' . tx_mmforum_tools::getSubUserGroupsR($groupData['subgroup']) . ',';
         } else {
             $result = $group . ',';
         }
     }
     return $result;
 }