Example #1
0
     // Use translated name for root-node
     $objects[0]['NAME'] = $itext['TXT_FILES'] != '' ? $itext['TXT_FILES'] : '$TXT_FILES';
     break;
 case 'tab_usergroup_tags':
     $objecttype = $site = 'tags';
     $tagMgr = new Tags();
     $objects = $tagMgr->getList(0, array(), true, $maxlevels, $roleid);
     $objects = $tagMgr->getAdditionalTreeInfo(false, $objects);
     // Use translated name for root-node
     $objects[0]['NAME'] = $itext['TXT_TAGS'] != '' ? $itext['TXT_TAGS'] : '$TXT_TAGS';
     break;
 case 'tab_usergroup_mailings':
     $objecttype = $site = 'mailings';
     $mailingMgr = new MailingMgr();
     $objects = $mailingMgr->getList(0, array(), $maxlevels, $roleid);
     $objects = $mailingMgr->getAdditionalTreeInfo(false, $objects);
     $objects = array_reverse($objects, false);
     $objects[0]['FOLDER'] = 1;
     // Use translated name for root-node
     $objects[0]['NAME'] = $itext['TXT_MAILINGS'] != '' ? $itext['TXT_MAILINGS'] : '$TXT_MAILINGS';
     break;
 case 'tab_usergroup_usergroups':
     $objecttype = $site = 'usergroups';
     $objects = sUsergroups()->getList(true);
     foreach ($objects as $objectIndex => $object_item) {
         $objects[$objectIndex]['LEVEL'] = 1;
         $objects[$objectIndex]['PARENT'] = 0;
         $usergroupPermissions = sUsergroups()->usergroupPermissions->getByUsergroup($roleid, $objects[$objectIndex]['ID']);
         $objects[$objectIndex]['RREAD'] = $usergroupPermissions['RREAD'];
         $objects[$objectIndex]['RWRITE'] = $usergroupPermissions['RWRITE'];
         $objects[$objectIndex]['RDELETE'] = $usergroupPermissions['RDELETE'];