FluentDOM\Nodes::registerNamespace PHP Метод

registerNamespace() публичный Метод

Register a namespace for selectors/expressions
public registerNamespace ( string $prefix, string $namespace )
$prefix string
$namespace string
    public function registerNamespace($prefix, $namespace)
    {
        $this->_namespaces[$prefix] = $namespace;
        $dom = $this->getDocument();
        if ($dom instanceof Document) {
            $dom->registerNamespace($prefix, $namespace);
        } elseif (isset($this->_xpath)) {
            $this->_xpath->registerNamespace($prefix, $namespace);
        }
    }