Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 1323 | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |

<?php

declare(strict_types=1);

namespace LeadersLinked\Form\Service;

use Laminas\Form\Form;
use Laminas\Db\Adapter\AdapterInterface;
use Laminas\Log\LoggerInterface;
use LeadersLinked\Mapper\CompanySizeMapper;
use LeadersLinked\Mapper\IndustryMapper;
use LeadersLinked\Model\Feed;

class CapsuleCommentForm extends Form
{

    public function __construct() 
    {
        parent::__construct();
        $this->setInputFilter(new CapsuleCommentFilter());

        $this->add([
            'name' => 'comment',
            'type' => \Laminas\Form\Element\Textarea::class,
            'attributes' => [
                'id'    => 'comment',
            ]
        ]);
        
        
        $this->add([
            'name' => 'rating',
            'type' => \Laminas\Form\Element\Text::class,
            'attributes' => [
                'id'    => 'rating',
            ],
        ]);
        
        $this->add([
            'name' => 'added_on',
            'type' => \Laminas\Form\Element\Text::class,
            'attributes' => [
                'id'    => 'added_on',
            ],
        ]);
    }
}