updates
This commit is contained in:
@@ -163,7 +163,6 @@ class PgnParser
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public function getGameByIndex($index)
|
public function getGameByIndex($index)
|
||||||
{
|
{
|
||||||
$games = $this->getUnparsedGames();
|
$games = $this->getUnparsedGames();
|
||||||
@@ -222,8 +221,7 @@ class PgnParser
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private
|
private function getParsedGame($unParsedGame)
|
||||||
function getParsedGame($unParsedGame)
|
|
||||||
{
|
{
|
||||||
$this->pgnGameParser->setPgn($unParsedGame);
|
$this->pgnGameParser->setPgn($unParsedGame);
|
||||||
$ret = $this->pgnGameParser->getParsedData();
|
$ret = $this->pgnGameParser->getParsedData();
|
||||||
@@ -232,4 +230,16 @@ class PgnParser
|
|||||||
}
|
}
|
||||||
return $ret;
|
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