Participants submit questions, upvote them and the presenter discusses them one by one, most upvoted first. - Stages collect -> vote -> discuss, switched manually by the presenter (V key or stepper, going back is possible) - Configurable upvote budget per participant, freely distributable (several upvotes on one question are allowed), votes can be withdrawn - Participants see all questions while collecting to avoid duplicates; no counts before the discussion - While discussing, next/prev step through the questions before moving to the next slide - Migration: slides.stage, slides.focus_response_id, responses.parent_id Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
43 lines
1.1 KiB
PHP
43 lines
1.1 KiB
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Model\Entity;
|
|
|
|
use Cake\ORM\Entity;
|
|
|
|
/**
|
|
* One answer row of a participant. A multi-select vote or a word cloud entry
|
|
* with several words results in several rows with the same participant_hash.
|
|
* Q&A: a question is a row with text_value, an upvote a row with parent_id = question id.
|
|
*
|
|
* @property int $id
|
|
* @property int $slide_id
|
|
* @property string $participant_hash
|
|
* @property int|null $slide_option_id
|
|
* @property string|null $text_value
|
|
* @property int|null $numeric_value
|
|
* @property int|null $parent_id Q&A upvote: id of the supported question
|
|
* @property \Cake\I18n\DateTime $created
|
|
*/
|
|
class Response extends Entity
|
|
{
|
|
/**
|
|
* Responses are only created by VoteService, never mass assigned from requests.
|
|
*
|
|
* @var array<string, bool>
|
|
*/
|
|
protected array $_accessible = [
|
|
'slide_id' => true,
|
|
'participant_hash' => true,
|
|
'slide_option_id' => true,
|
|
'text_value' => true,
|
|
'numeric_value' => true,
|
|
'parent_id' => true,
|
|
];
|
|
|
|
/**
|
|
* @var list<string>
|
|
*/
|
|
protected array $_hidden = ['participant_hash'];
|
|
}
|