Browse Source

updates

master
DHTMLGoodies 4 years ago
parent
commit
69466a1b45
  1. 16
      PgnParser.php

16
PgnParser.php

@ -163,7 +163,6 @@ class PgnParser
}
public function getGameByIndex($index)
{
$games = $this->getUnparsedGames();
@ -222,8 +221,7 @@ class PgnParser
}
private
function getParsedGame($unParsedGame)
private function getParsedGame($unParsedGame)
{
$this->pgnGameParser->setPgn($unParsedGame);
$ret = $this->pgnGameParser->getParsedData();
@ -232,4 +230,16 @@ class PgnParser
}
return $ret;
}
private function getParsedGameShort($unParsedGame)
{
$this->pgnGameParser->setPgn($unParsedGame);
$ret = $this->pgnGameParser->getParsedData();
if ($this->fullParsing()) {
$ret = $this->gameParser->getParsedGame($ret, true);
$moves = &$ret["moves"];
$moves = $this->toShortVersion($moves);
}
return $ret;
}
}

Loading…
Cancel
Save