public function moveChildrenBelowAnotherTag( eZTagsObject $targetTag )
    {
        $currentTime = time();
        $children = $this->getChildren( 0, null, true );
        foreach ( $children as $child )
        {
            $childSynonyms = $child->getSynonyms( true );
            foreach ( $childSynonyms as $childSynonym )
            {
                $childSynonym->setAttribute( 'parent_id', $targetTag->attribute( 'id' ) );
                $childSynonym->store();
            }

            $child->setAttribute( 'parent_id', $targetTag->attribute( 'id' ) );
            $child->setAttribute( 'modified', $currentTime );
            $child->store();
            $child->updatePathString( $targetTag );
            $child->updateDepth( $targetTag );
        }
    }
public function moveChildrenBelowAnotherTag( eZTagsObject $targetTag )
    {
        $currentTime = time();
        $children = $this->getChildren( 0, null, true );
        foreach ( $children as $child )
        {
            $childSynonyms = $child->getSynonyms( true );
            foreach ( $childSynonyms as $childSynonym )
            {
                $childSynonym->setAttribute( 'parent_id', $targetTag->attribute( 'id' ) );
                $childSynonym->store();
            }

            $child->setAttribute( 'parent_id', $targetTag->attribute( 'id' ) );
            $child->setAttribute( 'modified', $currentTime );
            $child->store();
            $child->updatePathString( $targetTag );
            $child->updateDepth( $targetTag );
        }
    }
public function moveChildrenBelowAnotherTag ( eZTagsObject $ targetTag ) { $ currentTime = time ( ) ; $ children = $ this -> getChildren ( 0 , null , true ) ; foreach ( $ children as $ child ) { $ childSynonyms = $ child -> getSynonyms ( true ) ; foreach ( $ childSynonyms as $ childSynonym ) { $ childSynonym -> setAttribute ( 'parent_id' , $ targetTag -> attribute ( 'id' ) ) ; $ childSynonym -> store ( ) ; } $ child -> setAttribute ( 'parent_id' , $ targetTag -> attribute ( 'id' ) ) ; $ child -> setAttribute ( 'modified' , $ currentTime ) ; $ child -> store ( ) ; $ child -> updatePathString ( $ targetTag ) ; $ child -> updateDepth ( $ targetTag ) ; } }
Moves all children of this tag below another tag

@param eZTagsObject $targetTag
Moves all children of this tag below another tag