Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 17085 Rev 17086
Línea 19... Línea 19...
19
        parent::__construct();
19
        parent::__construct();
20
        $this->setInputFilter(new TopicFilter());
20
        $this->setInputFilter(new TopicFilter());
Línea 21... Línea 21...
21
 
21
 
22
        
22
        
23
        $this->add([
23
        $this->add([
24
            'name' => 'capsules_id',
24
            'name' => 'capsules_uuid',
25
            'type' => \Laminas\Form\Element\Select::class,
25
            'type' => \Laminas\Form\Element\Select::class,
-
 
26
            'attributes' => [
26
            'attributes' => [
27
                'id' => 'capsules_uuid',
27
                'id' => 'capsules_id',
28
                'multiple' => true,
28
            ],
29
            ],
29
            'options' => [
30
            'options' => [
30
                'value_options' => $this->getSelectOptions($adapter, $company_id)
31
                'value_options' => $this->getSelectOptions($adapter, $company_id)
Línea 73... Línea 74...
73
 
74
 
74
        foreach($records as $record)
75
        foreach($records as $record)
75
        {
76
        {
76
            $options[$record->uuid] = $record->name;    
77
            $options[$record->uuid] = $record->name;    
77
        }
-
 
78
 
-
 
79
        $exampleOptions = [
-
 
80
            '0' => 'Select a capsule',
-
 
81
        ];
-
 
82
 
78
        }
83
        return $exampleOptions;
79
        return $options;
Línea 84... Línea 80...
84
    }
80
    }