protected function addFosterTag(Tag $tag, Tag $fosterTag)
	{
		list($childPos, $childPrio) = $this->getMagicStartCoords($tag->getPos() + $tag->getLen());

		// Add a 0-width copy of the parent tag after this tag and make it depend on this tag
		$childTag = $this->addCopyTag($fosterTag, $childPos, 0, $childPrio);
		$tag->cascadeInvalidationTo($childTag);
	}
protected function addFosterTag(Tag $tag, Tag $fosterTag)
	{
		list($childPos, $childPrio) = $this->getMagicStartCoords($tag->getPos() + $tag->getLen());

		// Add a 0-width copy of the parent tag after this tag and make it depend on this tag
		$childTag = $this->addCopyTag($fosterTag, $childPos, 0, $childPrio);
		$tag->cascadeInvalidationTo($childTag);
	}
protected function addFosterTag ( Tag $ tag , Tag $ fosterTag ) { list ( $ childPos , $ childPrio ) = $ this -> getMagicStartCoords ( $ tag -> getPos ( ) + $ tag -> getLen ( ) ) ; // Add a 0-width copy of the parent tag after this tag and make it depend on this tag $ childTag = $ this -> addCopyTag ( $ fosterTag , $ childPos , 0 , $ childPrio ) ; $ tag -> cascadeInvalidationTo ( $ childTag ) ; }
Create and add a copy of a tag as a child of a given tag

@param  Tag  $tag       Current tag
@param  Tag  $fosterTag Tag to foster
@return void
Create and add a copy of a tag as a child of a given tag