This commit is contained in:
DHTMLGoodies
2017-01-30 13:21:54 +01:00
parent a7a0f37ae0
commit d17e42e7da
15 changed files with 6 additions and 0 deletions

6
PgnParser.php Normal file → Executable file
View File

@@ -14,7 +14,13 @@ class PgnParser
{
if ($pgnFile) {
$this->pgnFile = $this->sanitize($pgnFile);
if(!file_exists($this->pgnFile)){
throw new Exception("File not found: ". $this->pgnFile);
}
}
$this->_fullParsing = $fullParsing;
$this->gameParser = new GameParser();
$this->pgnGameParser = new PgnGameParser();