public function add_event_button($courseid, $unused1 = null, $unused2 = null, $unused3 = null, $unused4 = null) {
        $data = [
            'contextid' => (\context_course::instance($courseid))->id,
        ];
        return $this->render_from_template('core_calendar/add_event_button', $data);
    }
public function add_event_button($courseid, $unused1 = null, $unused2 = null, $unused3 = null, $unused4 = null) {
        $data = [
            'contextid' => (\context_course::instance($courseid))->id,
        ];
        return $this->render_from_template('core_calendar/add_event_button', $data);
    }
public function add_event_button ( $ courseid , $ unused1 = null , $ unused2 = null , $ unused3 = null , $ unused4 = null ) { $ data = [ 'contextid' => ( \ context_course :: instance ( $ courseid ) ) -> id , ] ; return $ this -> render_from_template ( 'core_calendar/add_event_button' , $ data ) ; }
Creates a button to add a new event.

@param int $courseid
@param int $unused1
@param int $unused2
@param int $unused3
@param int $unused4
@return string
Creates a button to add a new event .