/**
  * @desc Reading of the hex a particular item.
  * @param hexItem hexadicimal item.
  * @param dbVersion dbVersion of item.
  * @return true/false.
  */
 public static function parseHexItem($hexItem, $dbVersion = 0)
 {
     self::clearVars();
     try {
         if (is_numeric($dbVersion) == false) {
             throw new Exception("dbVersion must be numeric.");
         }
         if ($dbVersion < 1 || $dbVersion > 3) {
             throw new Exception("dbVersion invalid.");
         }
         self::$dbVersion = $dbVersion;
         switch ($dbVersion) {
             case 1:
                 self::isItem($hexItem);
                 if (self::$dumpTemp['IsItem'] == false) {
                     return true;
                 }
                 self::getSerial($hexItem);
                 self::getIndex($hexItem);
                 self::getLevelOptionSkillLuck($hexItem);
                 self::getDurability($hexItem);
                 self::getExcellents($hexItem);
                 self::getPropertiesFromDatabase();
                 break;
             case 2:
                 self::isItem($hexItem);
                 if (self::$dumpTemp['IsItem'] == false) {
                     return true;
                 }
                 self::getSerial($hexItem);
                 self::getIndex($hexItem);
                 self::getLevelOptionSkillLuck($hexItem);
                 self::getDurability($hexItem);
                 self::getExcellents($hexItem);
                 self::getAncient($hexItem);
                 self::getPropertiesFromDatabase();
                 break;
             case 3:
                 self::isItem($hexItem);
                 if (self::$dumpTemp['IsItem'] == false) {
                     return true;
                 }
                 self::getSerial($hexItem);
                 self::getIndex($hexItem);
                 self::getLevelOptionSkillLuck($hexItem);
                 self::getDurability($hexItem);
                 self::getExcellents($hexItem);
                 self::getAncient($hexItem);
                 self::getRefine($hexItem);
                 self::getHarmony($hexItem);
                 self::getSocket($hexItem);
                 self::getPropertiesFromDatabase();
                 break;
         }
     } catch (Exception $msg) {
         self::$dumpTemp['Error'] = $msg->getMessage();
         return false;
     }
     return true;
 }