forked from GNUsocial/gnu-social
[Poll] Added file headers
This commit is contained in:
parent
ffb4b9df23
commit
50ec306243
@ -30,6 +30,16 @@ use App\Util\Exception\RedirectException;
|
||||
use Plugin\Poll\Forms\NewPollForm;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
|
||||
/**
|
||||
* Create a Poll
|
||||
*
|
||||
* @package GNUsocial
|
||||
* @category PollPlugin
|
||||
*
|
||||
* @author Daniel Brandao <up201705812@fe.up.pt>
|
||||
* @copyright 2020 Free Software Foundation, Inc http://www.fsf.org
|
||||
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
|
||||
*/
|
||||
const MAX_OPTS = 5;
|
||||
const MIN_OPTS = 2;
|
||||
|
||||
|
@ -26,6 +26,16 @@ use App\Util\Common;
|
||||
use App\Util\Exception\NotFoundException;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
|
||||
/**
|
||||
* Show a Poll
|
||||
*
|
||||
* @package GNUsocial
|
||||
* @category PollPlugin
|
||||
*
|
||||
* @author Daniel Brandao <up201705812@fe.up.pt>
|
||||
* @copyright 2020 Free Software Foundation, Inc http://www.fsf.org
|
||||
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
|
||||
*/
|
||||
class ShowPoll
|
||||
{
|
||||
/**
|
||||
|
@ -27,6 +27,16 @@ use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
|
||||
use Symfony\Component\Form\Form as SymfForm;
|
||||
|
||||
/**
|
||||
* Form to respond a Poll
|
||||
*
|
||||
* @package GNUsocial
|
||||
* @category PollPlugin
|
||||
*
|
||||
* @author Daniel Brandao <up201705812@fe.up.pt>
|
||||
* @copyright 2020 Free Software Foundation, Inc http://www.fsf.org
|
||||
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
|
||||
*/
|
||||
class PollResponseForm extends Form
|
||||
{
|
||||
/**
|
||||
|
@ -25,6 +25,16 @@ use App\Core\Module;
|
||||
use App\Core\Router\RouteLoader;
|
||||
use Symfony\Bundle\FrameworkBundle\Controller\RedirectController;
|
||||
|
||||
/**
|
||||
* Poll plugin main class
|
||||
*
|
||||
* @package GNUsocial
|
||||
* @category PollPlugin
|
||||
*
|
||||
* @author Daniel Brandao <up201705812@fe.up.pt>
|
||||
* @copyright 2020 Free Software Foundation, Inc http://www.fsf.org
|
||||
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
|
||||
*/
|
||||
const ID_FMT = '[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}';
|
||||
|
||||
/**
|
||||
|
@ -25,6 +25,16 @@ use App\Core\DB\DB;
|
||||
use App\Core\Entity;
|
||||
use DateTimeInterface;
|
||||
|
||||
/**
|
||||
* For storing a poll
|
||||
*
|
||||
* @package GNUsocial
|
||||
* @category PollPlugin
|
||||
*
|
||||
* @author Daniel Brandao <up201705812@fe.up.pt>
|
||||
* @copyright 2020 Free Software Foundation, Inc http://www.fsf.org
|
||||
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
|
||||
*/
|
||||
class Poll extends Entity
|
||||
{
|
||||
// {{{ Autocode
|
||||
|
@ -25,6 +25,16 @@ use App\Core\DB\DB;
|
||||
use App\Core\Entity;
|
||||
use DateTimeInterface;
|
||||
|
||||
/**
|
||||
* For storing a poll response
|
||||
*
|
||||
* @package GNUsocial
|
||||
* @category PollPlugin
|
||||
*
|
||||
* @author Daniel Brandao <up201705812@fe.up.pt>
|
||||
* @copyright 2020 Free Software Foundation, Inc http://www.fsf.org
|
||||
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
|
||||
*/
|
||||
class PollResponse extends Entity
|
||||
{
|
||||
// {{{ Autocode
|
||||
|
Loading…
Reference in New Issue
Block a user