original_string: 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();
          }
      }
code: 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();
          }
      }
code_tokens: 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 ( ) ; } }
docstring: Updates path string of the tag and all of it's children and synonyms.
docstring_tokens: Updates path string of the tag and all of it s children and synonyms .