public function addCopyTag(Tag $tag, $pos, $len, $prio = null)
	{
		if (!isset($prio))
		{
			$prio = $tag->getSortPriority();
		}
		$copy = $this->addTag($tag->getType(), $tag->getName(), $pos, $len, $prio);
		$copy->setAttributes($tag->getAttributes());

		return $copy;
	}
public function addCopyTag(Tag $tag, $pos, $len, $prio = null)
	{
		if (!isset($prio))
		{
			$prio = $tag->getSortPriority();
		}
		$copy = $this->addTag($tag->getType(), $tag->getName(), $pos, $len, $prio);
		$copy->setAttributes($tag->getAttributes());

		return $copy;
	}
public function addCopyTag ( Tag $ tag , $ pos , $ len , $ prio = null ) { if ( ! isset ( $ prio ) ) { $ prio = $ tag -> getSortPriority ( ) ; } $ copy = $ this -> addTag ( $ tag -> getType ( ) , $ tag -> getName ( ) , $ pos , $ len , $ prio ) ; $ copy -> setAttributes ( $ tag -> getAttributes ( ) ) ; return $ copy ; }
Add a copy of given tag at given position and length

@param  Tag     $tag  Original tag
@param  integer $pos  Copy's position
@param  integer $len  Copy's length
@param  integer $prio Copy's priority (same as original by default)
@return Tag           Copy tag
Add a copy of given tag at given position and length