Rev 17109 | Rev 17183 | Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |
<?phpdeclare(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 TopicEditForm extends Form{public function __construct($adapter){parent::__construct();$this->setInputFilter(new TopicEditFilter($adapter));$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',]]);}}