protected function get_activitytype() {
        $options = $this->get_format_options();
        $availabletypes = $this->get_supported_activities();
        if (!empty($options['activitytype']) &&
                array_key_exists($options['activitytype'], $availabletypes)) {
            return $options['activitytype'];
        } else {
            return null;
        }
    }
protected function get_activitytype() {
        $options = $this->get_format_options();
        $availabletypes = $this->get_supported_activities();
        if (!empty($options['activitytype']) &&
                array_key_exists($options['activitytype'], $availabletypes)) {
            return $options['activitytype'];
        } else {
            return null;
        }
    }
protected function get_activitytype ( ) { $ options = $ this -> get_format_options ( ) ; $ availabletypes = $ this -> get_supported_activities ( ) ; if ( ! empty ( $ options [ 'activitytype' ] ) && array_key_exists ( $ options [ 'activitytype' ] , $ availabletypes ) ) { return $ options [ 'activitytype' ] ; } else { return null ; } }
Returns the name of activity type used for this course

@return string|null
Returns the name of activity type used for this course