original_string: public function render()
      {
          $iter = $this->getIterator();
          foreach ($iter as $this->current_id => $this->current_row) {
              if ($this->current_row instanceof Model || $this->current_row instanceof \atk4\data\Model) {
                  /** @type Model $this->current_row */
                  $this->current_row = $this->current_row->get();
              } elseif (!is_array($this->current_row) && !($this->current_row instanceof ArrayAccess)) {
                  // Looks like we won't be able to access current_row as array, so we will
                  // copy it's value inside $this->current instead and produce an empty array
                  // to be filled out by a custom iterators
                  $this->current = $this->current_row;
                  $this->current_row = get_object_vars($this->current);
              }
  
              $this->formatRow();
              $this->output($this->rowRender($this->template));
          }
      }
code: public function render()
      {
          $iter = $this->getIterator();
          foreach ($iter as $this->current_id => $this->current_row) {
              if ($this->current_row instanceof Model || $this->current_row instanceof \atk4\data\Model) {
                  /** @type Model $this->current_row */
                  $this->current_row = $this->current_row->get();
              } elseif (!is_array($this->current_row) && !($this->current_row instanceof ArrayAccess)) {
                  // Looks like we won't be able to access current_row as array, so we will
                  // copy it's value inside $this->current instead and produce an empty array
                  // to be filled out by a custom iterators
                  $this->current = $this->current_row;
                  $this->current_row = get_object_vars($this->current);
              }
  
              $this->formatRow();
              $this->output($this->rowRender($this->template));
          }
      }
code_tokens: public function render ( ) { $ iter = $ this -> getIterator ( ) ; foreach ( $ iter as $ this -> current_id => $ this -> current_row ) { if ( $ this -> current_row instanceof Model || $ this -> current_row instanceof \ atk4 \ data \ Model ) { /** @type Model $this->current_row */ $ this -> current_row = $ this -> current_row -> get ( ) ; } elseif ( ! is_array ( $ this -> current_row ) && ! ( $ this -> current_row instanceof ArrayAccess ) ) { // Looks like we won't be able to access current_row as array, so we will // copy it's value inside $this->current instead and produce an empty array // to be filled out by a custom iterators $ this -> current = $ this -> current_row ; $ this -> current_row = get_object_vars ( $ this -> current ) ; } $ this -> formatRow ( ) ; $ this -> output ( $ this -> rowRender ( $ this -> template ) ) ; } }
docstring: Renders everything.
docstring_tokens: Renders everything .