POST /api/v1/summits/{id}/rsvp-templates/{template_id}/questions
payload
Base Payload
* class_name (string:in:RSVPMemberEmailQuestionTemplate,
RSVPMemberFirstNameQuestionTemplate,
RSVPMemberLastNameQuestionTemplate,
RSVPTextBoxQuestionTemplate,
RSVPTextAreaQuestionTemplate,
RSVPCheckBoxListQuestionTemplate,
RSVPRadioButtonListQuestionTemplate,
RSVPDropDownQuestionTemplate,
RSVPLiteralContentQuestionTemplate
)
* name (required|alpha_dash|max:255)
* label (required|string)
* is_mandatory (sometimes|boolean)
* is_read_only (sometimes|boolean)
RSVPTextBoxQuestionTemplate, RSVPTextAreaQuestionTemplate
* initial_value (string|sometimes)
RSVPCheckBoxListQuestionTemplate,RSVPRadioButtonListQuestionTemplate
* empty_string (required|string)
RSVPDropDownQuestionTemplate
* is_multiselect (sometimes|boolean)
* is_country_selector (sometimes|boolean)
* use_chosen_plugin (sometimes|boolean)
RSVPLiteralContentQuestionTemplate
* content (required|string)
Change-Id: I16ee3aaa7d556d3e0a8d41ceca2514568098b981
30 lines
1.1 KiB
PHP
30 lines
1.1 KiB
PHP
<?php namespace App\Models\Foundation\Summit\Events\RSVP;
|
|
/**
|
|
* Copyright 2018 OpenStack Foundation
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
**/
|
|
use Doctrine\ORM\Mapping AS ORM;
|
|
/**
|
|
* @ORM\Table(name="RSVPTextBoxQuestionTemplate")
|
|
* @ORM\Entity
|
|
* Class RSVPTextBoxQuestionTemplate
|
|
* @package App\Models\Foundation\Summit\Events\RSVP
|
|
*/
|
|
class RSVPTextBoxQuestionTemplate extends RSVPSingleValueTemplateQuestion
|
|
{
|
|
const ClassName = 'RSVPTextBoxQuestionTemplate';
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getClassName(){
|
|
return self::ClassName;
|
|
}
|
|
} |