Definition at line 18 of file XmlDb.php.
|
| | __construct ($tablePrefix, $pdo, $cache, $options=[]) |
| | creates an instance of the xmlDb
|
| | __get ($property) |
| | Get properties (basically read-only).
|
| | docExists ($docIdOrName) |
| | gets the doc-id of a xml-document by name or id and checks if the document exists
|
| | getDocuments ($name="", $type="") |
| | gets available documents in database
|
| | getDoc ($docIdOrName) |
| | Get xmlDb\document.
|
| | getDocByNodeId ($nodeId) |
| | Get xmlDb\document.
|
| | getDocInfo ($docIdOrName) |
| | getDocInfo
|
| | 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
|
| | getSubdocByXpath ($xpath, $addIdAttribute=true) |
| | gets document by xpath.
|
| | getNodeIdsByXpath ($xpath, $docId=null) |
| | gets node_ids by xpath
|
| | getIndexNodeData ($nodeIds) |
| | loads the document id and the attributes of the given nodes with a single query (used by the Indexer to resolve targeted attributes and the lang attribute without a round trip per node); non element nodes get an empty attribute map
|
| | getIndexTextContent ($nodeIds) |
| | concatenates the descendant text nodes of the given nodes with a single query, in document order; that is the text content Document::getSubdocByNodeId assembles (processing instructions and comments never contribute to textContent and entity references are not emitted by getSubdocByNodeId either)
|
| | createDoc ($doctype='Depage\XmlDb\XmlDoctypes\Base', $docName=null) |
| | CreateDoc.
|
| | duplicateDoc ($docNameOrId, $newName=null) |
| | duplicateDoc
|
| | removeDoc ($docId) |
| | updateSchema () |
| | updateSchema
|
| | clearTables () |
| | Removes SQL tables.
|
| | beginTransactionAltering () |
| | opens a transaction that changes the documents
|
| | beginTransactionNonAltering () |
| | opens a transaction that only reads the documents
|
| | endTransaction () |
| | closes the innermost open transaction level
|
| | rollBackTransaction () |
| | rolls back to the start of the innermost open transaction level, keeping outer transaction levels (if any) intact.
|
| | rollBack () |
| | resets the transaction state completely and rolls back the database transaction; use to recover after a failure that left transactions open.
|