Add initial Plenario live polling app
CakePHP 5.4 app for live polls: create via email without login, manage via secret admin link, join via code. Includes slide types (choice, wordcloud, open, scale, content), presenter mode, CSV export, captcha, throttling, tests and Gitea CI/deploy workflow. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
eb319f8c1e
120 files changed
+15572
No files matched your search
@@ -0,0 +1,39 @@
|
||||
<?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.
|
||||
*
|
||||
* @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 \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,
|
||||
];
|
||||
|
||||
/**
|
||||
* @var list<string>
|
||||
*/
|
||||
protected array $_hidden = ['participant_hash'];
|
||||
}
|
||||
Reference in new issue
Block a user