original_string: public function getSiteURL($locale = null)
      {
          $node = $this;
          $uri = '';
  
          do
          {
              $uri = '/' . $node->getTranslationAttribute('node_name', $locale) . $uri;
              $node = is_null($node->parent_id) ? null : node_bag($node->parent_id, false);
          } while ( ! is_null($node) && $node->home != '1');
  
          return url($uri);
      }
code: public function getSiteURL($locale = null)
      {
          $node = $this;
          $uri = '';
  
          do
          {
              $uri = '/' . $node->getTranslationAttribute('node_name', $locale) . $uri;
              $node = is_null($node->parent_id) ? null : node_bag($node->parent_id, false);
          } while ( ! is_null($node) && $node->home != '1');
  
          return url($uri);
      }
code_tokens: public function getSiteURL ( $ locale = null ) { $ node = $ this ; $ uri = '' ; do { $ uri = '/' . $ node -> getTranslationAttribute ( 'node_name' , $ locale ) . $ uri ; $ node = is_null ( $ node -> parent_id ) ? null : node_bag ( $ node -> parent_id , false ) ; } while ( ! is_null ( $ node ) && $ node -> home != '1' ) ; return url ( $ uri ) ; }
docstring: Gets the full url for node
  
  @param string $locale
  @return string
docstring_tokens: Gets the full url for node