public function permissionGetCategoryById($permid)
  {
    if(!is_numeric($permid))
    {
      $permid = $this->permissionGetIdByName($permid);
    }

    return (int) $permid >> 8;
  }
public function permissionGetCategoryById($permid)
  {
    if(!is_numeric($permid))
    {
      $permid = $this->permissionGetIdByName($permid);
    }

    return (int) $permid >> 8;
  }
public function permissionGetCategoryById ( $ permid ) { if ( ! is_numeric ( $ permid ) ) { $ permid = $ this -> permissionGetIdByName ( $ permid ) ; } return ( int ) $ permid >> 8 ; }
Returns the internal category of the permission matching the given ID.

All permission IDs are are 2 bytes wide. The first byte identifies the category while the second
byte is the permission count within that group.

@param  integer $permid
@return integer
Returns the internal category of the permission matching the given ID .