original_string: public function export(\renderer_base $output) {
  
          \core_analytics\manager::check_can_manage_models();
  
          $data = clone $this->model;
  
          $data->name = $this->inplace_editable_name()->export_for_template($output);
          $data->target = $this->get_target()->get_name();
          $data->targetclass = $this->get_target()->get_id();
  
          if ($timesplitting = $this->get_time_splitting()) {
              $data->timesplitting = $timesplitting->get_name();
          }
  
          $data->indicators = array();
          foreach ($this->get_indicators() as $indicator) {
              $data->indicators[] = $indicator->get_name();
          }
          return $data;
      }
code: public function export(\renderer_base $output) {
  
          \core_analytics\manager::check_can_manage_models();
  
          $data = clone $this->model;
  
          $data->name = $this->inplace_editable_name()->export_for_template($output);
          $data->target = $this->get_target()->get_name();
          $data->targetclass = $this->get_target()->get_id();
  
          if ($timesplitting = $this->get_time_splitting()) {
              $data->timesplitting = $timesplitting->get_name();
          }
  
          $data->indicators = array();
          foreach ($this->get_indicators() as $indicator) {
              $data->indicators[] = $indicator->get_name();
          }
          return $data;
      }
code_tokens: public function export ( \ renderer_base $ output ) { \ core_analytics \ manager :: check_can_manage_models ( ) ; $ data = clone $ this -> model ; $ data -> name = $ this -> inplace_editable_name ( ) -> export_for_template ( $ output ) ; $ data -> target = $ this -> get_target ( ) -> get_name ( ) ; $ data -> targetclass = $ this -> get_target ( ) -> get_id ( ) ; if ( $ timesplitting = $ this -> get_time_splitting ( ) ) { $ data -> timesplitting = $ timesplitting -> get_name ( ) ; } $ data -> indicators = array ( ) ; foreach ( $ this -> get_indicators ( ) as $ indicator ) { $ data -> indicators [ ] = $ indicator -> get_name ( ) ; } return $ data ; }
docstring: Exports the model data for displaying it in a template.
  
  @param \renderer_base $output The renderer to use for exporting
  @return \stdClass
docstring_tokens: Exports the model data for displaying it in a template .