depage-xmldb v2.3.1
XML documents in a relational database
Loading...
Searching...
No Matches
DocumentWriterHost.php
Go to the documentation of this file.
1<?php
2
12
13namespace Depage\XmlDb\Interfaces;
14
24{
30 public const SORTKEY_PAD = 20;
31
39 public const SAVE_BATCH_SIZE = 200;
40
44 public function updateLastChange($timestamp = null, $uid = null);
45
49 public function getParentIdById($id);
50
54 public function getDoctypeHandler();
55
59 public function getSubdocByNodeId($id, $addIdAttribute = true);
60}
61
62/* vim:set ft=php sw=4 sts=4 fdm=marker et : */
what the write pipeline (Helpers\DocumentWriter) needs from the document it writes: the document meta...
getDoctypeHandler()
the doctype handler governing this document
getSubdocByNodeId($id, $addIdAttribute=true)
reads a node's subtree as a document (used to copy nodes)
getParentIdById($id)
db-id of the parent of a node, false if the node does not exist
updateLastChange($timestamp=null, $uid=null)
marks the document as changed; has to be called after every write
const SORTKEY_PAD
number of decimal digits used for the position part of the recursive CTE sortkey; limits the tree dep...
const SAVE_BATCH_SIZE
maximum number of nodes written with a single statement; the write pipeline inserts nodes in batches ...