public function serverGroupGetById($sgid)
  {
    if(!array_key_exists((string) $sgid, $this->serverGroupList()))
    {
      throw new Exception("invalid groupID", 0xA00);
    }

    return $this->sgroupList[intval((string) $sgid)];
  }
public function serverGroupGetById($sgid)
  {
    if(!array_key_exists((string) $sgid, $this->serverGroupList()))
    {
      throw new Exception("invalid groupID", 0xA00);
    }

    return $this->sgroupList[intval((string) $sgid)];
  }
public function serverGroupGetById ( $ sgid ) { if ( ! array_key_exists ( ( string ) $ sgid , $ this -> serverGroupList ( ) ) ) { throw new Exception ( "invalid groupID" , 0xA00 ) ; } return $ this -> sgroupList [ intval ( ( string ) $ sgid ) ] ; }
Returns the Servergroup object matching the given ID.

@param  integer $sgid
@throws Exception
@return ServerGroup
Returns the Servergroup object matching the given ID .