| 1 | <?php |
||
| 10 | class YMLParser |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Driver for parsing xml. |
||
| 14 | * |
||
| 15 | * @var Driver\DriverInterface |
||
| 16 | */ |
||
| 17 | private $driver; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * |
||
| 21 | * @param \YMLParser\Driver\DriverInterface $driver |
||
| 22 | */ |
||
| 23 | public function __construct(Driver\DriverInterface $driver) |
||
| 27 | |||
| 28 | |||
| 29 | /** |
||
| 30 | * OpeС‚s and creates XML DOM tree. |
||
| 31 | * |
||
| 32 | * Sets error for YMLParser if cannot open file or xml is invalid |
||
| 33 | * |
||
| 34 | * @param string $filename Path to file |
||
| 35 | * |
||
| 36 | * @throws \Exception Throws exception if file doesn't exist or its size = 0 |
||
| 37 | * |
||
| 38 | * @return bool |
||
| 39 | */ |
||
| 40 | public function open($filename) |
||
| 48 | |||
| 49 | public function __call($method, $args = null) |
||
| 53 | } |
||
| 54 |