Пример #1
0
 function getCategories($param = false)
 {
     $temp = $param ? $param : Get::req($this->id . "_input", DOTY_MIXED, false);
     $nodes = explode(',', $temp);
     $output = array();
     $branches = array();
     foreach ($nodes as $node) {
         if (stristr($node, "d")) {
             $branches[] = '/ocd_' . str_replace('d', '', $node);
         } else {
             $branches[] = '/oc_' . $node;
         }
     }
     $acl = new DoceboACLManager();
     $groups = $acl->getGroupsIdByPaths($branches);
     $output = $acl->getAllUsersFromIdst($groups);
     return $output;
 }