depage-xmldb v2.3.1
XML documents in a relational database
Loading...
Searching...
No Matches
XmlGetter.php
Go to the documentation of this file.
1<?php
2
3namespace Depage\XmlDb\Interfaces;
4
11interface XmlGetter
12{
20 public function docExists($docIdOrName);
29 public function getDocXml($docIdOrName, $addIdAttribute = true);
39 public function getDocXmlXpath($docIdOrName, $xpath, $addIdAttribute = true);
40}
Interface of a read only accessor for xml documents.
Definition XmlGetter.php:12
docExists($docIdOrName)
gets the id of a document and checks whether it exists
getDocXml($docIdOrName, $addIdAttribute=true)
gets a document as a DOMDocument
getDocXmlXpath($docIdOrName, $xpath, $addIdAttribute=true)
gets the first node of a document that matches an xpath query