1
Move
Shikiryu edited this page 2019-10-21 09:40:53 +02:00
EXPERIMENTAL
Syntax: public function move($node, $to)
Example:
xmldb->move($xmldbtest->selectFromPK('table1', 'search', 'node'), 'table2');
This will move the item with a PK = "search" from table1 to table2.
Tables must be present before the movement or it will return @false@.
TODO: The first goal of this function is to move the element to a precise location and not just append it into another table.
The only way found is to use the DOMDocument function insertBefore
. We just need to calculate the index of the index... after ;).