original_string: final protected function setIndex($index)
      {
          $this->model->leafIndex = $index;
          $this->model->updatePath();
          // Signal to all or any sub leaves that need to recompute their own path now.
          $this->leafPathChanged();
      }
code: final protected function setIndex($index)
      {
          $this->model->leafIndex = $index;
          $this->model->updatePath();
          // Signal to all or any sub leaves that need to recompute their own path now.
          $this->leafPathChanged();
      }
code_tokens: final protected function setIndex ( $ index ) { $ this -> model -> leafIndex = $ index ; $ this -> model -> updatePath ( ) ; // Signal to all or any sub leaves that need to recompute their own path now. $ this -> leafPathChanged ( ) ; }
docstring: Sets a view index for subsequent renders.
  
  @param $index
docstring_tokens: Sets a view index for subsequent renders .