TemplateTag::replChild - jcobban/Genealogy GitHub Wiki

$tag->replChild($oldtag, $newtag)

Up: class TemplateTag

Replaces an instance of TemplateTag as a child of this instance with another instance.

parameter description
$oldtag an instance of TemplateTag that is an existing child of the tag identified by $this
$newtag an instance of TemplateTag

Next: $tag->update($instructions)