public static function GetHandler($rawPacket)
 {
     if (XTParser::IsValid($rawPacket)) {
         $arrPacket = XTParser::ParseRaw($rawPacket);
         if (isset($arrPacket[1])) {
             $strHandler = $arrPacket[1];
             return $strHandler;
         }
     }
     return false;
 }
 private function handleLogin($strResult)
 {
     $arrPacket = XTParser::ParseRaw($strResult);
     if ($arrPacket[1] == 'e') {
         $intError = $arrPacket[3];
         $strError = $this->arrErrors[$intError]['Description'];
         throw new ConnectionException($strError, $intError);
     }
     $strVertical = $arrPacket[3];
     $arrVertical = XTParser::ParseVertical($strVertical);
     $this->intPlayerId = $arrVertical[0];
     $this->strLoginKey = $arrVertical[3];
     $this->strConfirmationKey = $arrPacket[4];
     $this->strRawPlayer = $strVertical;
     return true;
 }