Skip to content

Commit

Permalink
sync with actual source
Browse files Browse the repository at this point in the history
  • Loading branch information
franzose committed Feb 11, 2015
1 parent 507f94a commit 6f5dfa0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ Direct descendants (children)
'content' => 'The content of a child'
));
$page->appendChild($newChild);
$page->addChild($newChild);
//you can set child position
$page->appendChild($newChild, 5);
$page->addChild($newChild, 5);
$page->appendChildren([$newChild, $newChild2]);
$page->addChildren([$newChild, $newChild2]);
$page->getChildAt(5);
$page->getFirstChild();
Expand Down Expand Up @@ -147,7 +147,7 @@ Moving
$page->moveTo(0, 14);
Deleting subtree
-----------------
----------------

If you don't use foreign keys for some reason, you can delete subtree manually. This will delete the page and all its descendants:

Expand Down

0 comments on commit 6f5dfa0

Please sign in to comment.