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);
    }
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);
    }
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 ) ; }
Return a course import object.

@param array $data data to import the course with.
@return tool_uploadcourse_course
Return a course import object .