Proyectos de Subversion LeadersLinked - Backend

Rev

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

<?php

declare(strict_types=1);

namespace LeadersLinked\Form\Feed;

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

class CreateFeedForm extends Form
{

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

        $this->add([
            'name' => 'description',
            'type' => \Laminas\Form\Element\Textarea::class,
            'attributes' => [
                'id'    => 'description',
            ]
        ]);
        
    
        
        
        $this->add([
            'name' => 'file',
            'type' => \Laminas\Form\Element\File::class,
             'attributes' => [
                'id' => 'file',
            ]
         ]);
        
        
        
        
        $this->add([
            'name' => 'scheduled_active',
            'type' => \Laminas\Form\Element\Checkbox::class,
            'attributes' => [
                'id' => 'scheduled_active',
            ],
            'options' => [
                'use_hidden_element' => false,
                'unchecked_value' => '0',
                'checked_value' => '1',
            ]
        ]);
        
        
        $this->add([
            'name' => 'scheduled_timestamp',
            'type' => \Laminas\Form\Element\Text::class,
            'attributes' => [
                'id' => 'scheduled_timestamp',
                'maxlength' => 20
            ],
            
        ]);
        
        
        $this->add([
            'name' => 'notification_active',
            'type' => \Laminas\Form\Element\Checkbox::class,
            'attributes' => [
                'id' => 'notification_active',
            ],
            'options' => [
                'use_hidden_element' => false,
                'unchecked_value' => '0',
                'checked_value' => '1',
            ]
        ]);
        
        $this->add([
            'name' => 'notification_custom_active',
            'type' => \Laminas\Form\Element\Checkbox::class,
            'attributes' => [
                'id' => 'notification_custom_active',
            ],
            'options' => [
                'use_hidden_element' => false,
                'unchecked_value' => '0',
                'checked_value' => '1',
            ]
        ]);
        
        $this->add([
            'name' => 'notification_custom_title',
            'type' => \Laminas\Form\Element\Text::class,
            'attributes' => [
                'id'    => 'notification_custom_title',
                'maxlength' => 50,
            ]
        ]);
        
        $this->add([
            'name' => 'notification_custom_description',
            'type' => \Laminas\Form\Element\Textarea::class,
            'attributes' => [
                'id'    => 'notification_custom_description',
            ]
        ]);

        
        
    }

        
    
}