updates
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user