public function can_update() {
        return in_array($this->mode,
                array(
                    tool_uploadcourse_processor::MODE_UPDATE_ONLY,
                    tool_uploadcourse_processor::MODE_CREATE_OR_UPDATE)
                ) && $this->updatemode != tool_uploadcourse_processor::UPDATE_NOTHING;
    }
public function can_update() {
        return in_array($this->mode,
                array(
                    tool_uploadcourse_processor::MODE_UPDATE_ONLY,
                    tool_uploadcourse_processor::MODE_CREATE_OR_UPDATE)
                ) && $this->updatemode != tool_uploadcourse_processor::UPDATE_NOTHING;
    }
public function can_update ( ) { return in_array ( $ this -> mode , array ( tool_uploadcourse_processor :: MODE_UPDATE_ONLY , tool_uploadcourse_processor :: MODE_CREATE_OR_UPDATE ) ) && $ this -> updatemode != tool_uploadcourse_processor :: UPDATE_NOTHING ; }
Does the mode allow for course update?

@return bool
Does the mode allow for course update?