Proyectos de Subversion LeadersLinked - Backend

Rev

Autoría | Ultima modificación | Ver Log |

<?php

declare(strict_types=1);

namespace LeadersLinked\Form\Microlearning;

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;
use LeadersLinked\Model\MicrolearningTopic;

class TopicAddForm extends Form
{

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


        $this->add([
            'name' => 'name',
            'type' => \Laminas\Form\Element\Textarea::class,
            'attributes' => [
                'id'    => 'name',
            ]
        ]);
        
        $this->add([
            'name' => 'description',
            'type' => \Laminas\Form\Element\Textarea::class,
            'attributes' => [
                'id'    => 'description',
            ]
        ]);
        
        $this->add([
            'name' => 'order',
            'type' => \Laminas\Form\Element\Text::class,
            'attributes' => [
                'id'    => 'order',
            ],
        ]);
        
        $this->add([
            'name' => 'file',
            'type' => \Laminas\Form\Element\Hidden::class,
            'attributes' => [
                'id' => 'file',
            ]
        ]);
        
        
        
        $this->add([
            'name' => 'status',
            'type' => \Laminas\Form\Element\Select::class,
            'options' => [
                'empty_option' => 'LABEL_STATUS',
                'value_options' => [
                    MicrolearningTopic::STATUS_ACTIVE => 'LABEL_ACTIVE',
                    MicrolearningTopic::STATUS_INACTIVE => 'LABEL_INACTIVE',
                ],
            ],
            'attributes' => [
                'id' => 'status',
            ]
        ]);
        


        
    }
}