public function can_create() {
        return in_array($this->mode, array(tool_uploadcourse_processor::MODE_CREATE_ALL,
            tool_uploadcourse_processor::MODE_CREATE_NEW,
            tool_uploadcourse_processor::MODE_CREATE_OR_UPDATE)
        );
    }
public function can_create() {
        return in_array($this->mode, array(tool_uploadcourse_processor::MODE_CREATE_ALL,
            tool_uploadcourse_processor::MODE_CREATE_NEW,
            tool_uploadcourse_processor::MODE_CREATE_OR_UPDATE)
        );
    }
public function can_create ( ) { return in_array ( $ this -> mode , array ( tool_uploadcourse_processor :: MODE_CREATE_ALL , tool_uploadcourse_processor :: MODE_CREATE_NEW , tool_uploadcourse_processor :: MODE_CREATE_OR_UPDATE ) ) ; }
Does the mode allow for course creation?

@return bool
Does the mode allow for course creation?