public function updatePathString()
    {
        $parentTag = $this->getParent( true );
        $pathStringPrefix = $parentTag instanceof self ? $parentTag->attribute( 'path_string' ) : '/';

        $this->setAttribute( 'path_string', $pathStringPrefix . $this->attribute( 'id' ) . '/' );
        $this->store();

        foreach ( $this->getSynonyms( true ) as $s )
        {
            $s->setAttribute( 'path_string', $pathStringPrefix . $s->attribute( 'id' ) . '/' );
            $s->store();
        }

        foreach ( $this->getChildren( 0, null, true ) as $c )
        {
            $c->updatePathString();
        }
    }
public function updatePathString()
    {
        $parentTag = $this->getParent( true );
        $pathStringPrefix = $parentTag instanceof self ? $parentTag->attribute( 'path_string' ) : '/';

        $this->setAttribute( 'path_string', $pathStringPrefix . $this->attribute( 'id' ) . '/' );
        $this->store();

        foreach ( $this->getSynonyms( true ) as $s )
        {
            $s->setAttribute( 'path_string', $pathStringPrefix . $s->attribute( 'id' ) . '/' );
            $s->store();
        }

        foreach ( $this->getChildren( 0, null, true ) as $c )
        {
            $c->updatePathString();
        }
    }
public function updatePathString ( ) { $ parentTag = $ this -> getParent ( true ) ; $ pathStringPrefix = $ parentTag instanceof self ? $ parentTag -> attribute ( 'path_string' ) : '/' ; $ this -> setAttribute ( 'path_string' , $ pathStringPrefix . $ this -> attribute ( 'id' ) . '/' ) ; $ this -> store ( ) ; foreach ( $ this -> getSynonyms ( true ) as $ s ) { $ s -> setAttribute ( 'path_string' , $ pathStringPrefix . $ s -> attribute ( 'id' ) . '/' ) ; $ s -> store ( ) ; } foreach ( $ this -> getChildren ( 0 , null , true ) as $ c ) { $ c -> updatePathString ( ) ; } }
Updates path string of the tag and all of it's children and synonyms.
Updates path string of the tag and all of it s children and synonyms .