Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 17109 | Rev 17112 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 17109 Rev 17110
Línea 9... Línea 9...
9
use Laminas\Log\LoggerInterface;
9
use Laminas\Log\LoggerInterface;
10
use LeadersLinked\Mapper\CompanySizeMapper;
10
use LeadersLinked\Mapper\CompanySizeMapper;
11
use LeadersLinked\Mapper\IndustryMapper;
11
use LeadersLinked\Mapper\IndustryMapper;
12
use LeadersLinked\Model\Feed;
12
use LeadersLinked\Model\Feed;
13
use LeadersLinked\Model\MicrolearningTopic;
13
use LeadersLinked\Model\MicrolearningTopic;
-
 
14
use Laminas\Form\Element\Select;
Línea 14... Línea 15...
14
 
15
 
15
class TopicAddForm extends Form
16
class TopicAddForm extends Form
Línea 16... Línea 17...
16
{
17
{
17
 
18
 
18
    public function __construct() 
19
    public function __construct($adapter, $company_id) 
19
    {
20
    {
Línea 20... Línea 21...
20
        parent::__construct();
21
        parent::__construct();
21
        $this->setInputFilter(new TopicAddFilter());
22
        $this->setInputFilter(new TopicAddFilter($adapter));
22
 
23
 
Línea 49... Línea 50...
49
            'name' => 'file',
50
            'name' => 'file',
50
            'type' => \Laminas\Form\Element\Hidden::class,
51
            'type' => \Laminas\Form\Element\Hidden::class,
51
            'attributes' => [
52
            'attributes' => [
52
                'id' => 'file',
53
                'id' => 'file',
53
            ]
54
            ]
54
        ]);
55
        ]); 
55
        
-
 
56
        
-
 
Línea 57... Línea 56...
57
        
56
        
58
        $this->add([
57
        $this->add([
59
            'name' => 'status',
58
            'name' => 'status',
60
            'type' => \Laminas\Form\Element\Select::class,
59
            'type' => \Laminas\Form\Element\Select::class,
Línea 68... Línea 67...
68
            'attributes' => [
67
            'attributes' => [
69
                'id' => 'status',
68
                'id' => 'status',
70
            ]
69
            ]
71
        ]);
70
        ]);
Línea -... Línea 71...
-
 
71
        
-
 
72
        $this->add([
-
 
73
            'name' => 'capsule_uuid',
-
 
74
            'type' => Select::class,
-
 
75
            'attributes' => [
-
 
76
                'multiple' 	=> 'yes',
72
        
77
                'id' =>  'capsule_uuid',
-
 
78
            ],
-
 
79
            'options' => [
-
 
80
                'disable_inarray_validator' => true,
73
 
81
                'value_options' => $this->getSelectOptions($adapter, $company_id)
74
 
82
            ]
75
        
83
        ]);
76
    }
84
    }