blob: 4d208c1cd43bb26e0ab2be50f1811af2b65062da (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
<?php
/**
* PHP EPub Meta library
*
* @author Andreas Gohr <andi@splitbrain.org>
* @author Sébastien Lucas <sebastien@slucas.fr>
*/
namespace SebLucas\EPubMeta\Dom;
use DOMDocument;
use DOMXPath;
/**
* EPUB-specific subclass of DOMXPath
*
* Source: https://github.com/splitbrain/php-epub-meta
* @author Andreas Gohr <andi@splitbrain.org> © 2012
* @author Simon Schrape <simon@epubli.com> © 2015–2018
* @author Sébastien Lucas <sebastien@slucas.fr>
*/
class XPath extends DOMXPath
{
public function __construct(DOMDocument $doc)
{
parent::__construct($doc);
foreach (Element::$namespaces as $prefix => $namespaceUri) {
$this->registerNamespace($prefix, $namespaceUri);
}
}
}
|