?? GreyFile — Mystic File Browser

Current path: home/webdevt/cryptoimpot.fr/module/Application/src/Form/Element/



?? Go up: /home/webdevt/cryptoimpot.fr/module/Application/src/Form

?? Viewing: ExchangeSelect.php

<?php

namespace Application\Form\Element;

use Laminas\Form\Element\Select;

class ExchangeSelect extends \Laminas\Form\Element\Select {

    public function __construct(\Doctrine\ORM\EntityManager $em, $i = '') {
        $this->em = $em;
        parent::__construct("exchanges");
        $exchangeMapper = new \Application\Mapper\ExchangeMapper($this->em);
        

        $exchangeArrayForSelect = $exchangeMapper->getArrayForSelect();



        //$exhangeArray = array_merge($exhangeArray, $exchangeArrayForSelect);

        $this->setLabel('Les plateformes d\'échanges que vous utilisez')
                ->setValueOptions($exchangeArrayForSelect)
                ->setAttributes(array(
                    'id' => 'echanges',
                    ///'multiple' => 'multiple',
                    'data-toggle' => 'select',
                ))
                ->setLabelAttributes(array(
                    "class" => "control-label"
        ));
    }

}


??

??