Rev 5560 | AutorÃa | Ultima modificación | Ver Log |
<?phpdeclare(strict_types=1);namespace LeadersLinked\Form;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\CompanyMicrolearningTopic;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' => [CompanyMicrolearningTopic::STATUS_ACTIVE => 'LABEL_ACTIVE',CompanyMicrolearningTopic::STATUS_INACTIVE => 'LABEL_INACTIVE',],],'attributes' => ['id' => 'status',]]);}}