original_string: protected function get_course($data) {
          $importoptions = array(
              'candelete' => $this->allowdeletes,
              'canrename' => $this->allowrenames,
              'canreset' => $this->allowresets,
              'reset' => $this->reset,
              'restoredir' => $this->get_restore_content_dir(),
              'shortnametemplate' => $this->shortnametemplate
          );
          return new tool_uploadcourse_course($this->mode, $this->updatemode, $data, $this->defaults, $importoptions);
      }
code: protected function get_course($data) {
          $importoptions = array(
              'candelete' => $this->allowdeletes,
              'canrename' => $this->allowrenames,
              'canreset' => $this->allowresets,
              'reset' => $this->reset,
              'restoredir' => $this->get_restore_content_dir(),
              'shortnametemplate' => $this->shortnametemplate
          );
          return new tool_uploadcourse_course($this->mode, $this->updatemode, $data, $this->defaults, $importoptions);
      }
code_tokens: protected function get_course ( $ data ) { $ importoptions = array ( 'candelete' => $ this -> allowdeletes , 'canrename' => $ this -> allowrenames , 'canreset' => $ this -> allowresets , 'reset' => $ this -> reset , 'restoredir' => $ this -> get_restore_content_dir ( ) , 'shortnametemplate' => $ this -> shortnametemplate ) ; return new tool_uploadcourse_course ( $ this -> mode , $ this -> updatemode , $ data , $ this -> defaults , $ importoptions ) ; }
docstring: Return a course import object.
  
  @param array $data data to import the course with.
  @return tool_uploadcourse_course
docstring_tokens: Return a course import object .