src/Component/Frontend/StructureModal/Create.php
protected function createComponentStructureStructureModal() : object
    {
        $control = $this->IStructure_StructureModal->create();


        $control->onOpen[] = function () use ($control)
        {
            $control->redrawControl('modal');
            $control->redrawControl('title');

            $control->redrawControl('formNoFile');
            $control->redrawControl('formFile');
            $control->redrawControl('formMain');
        };


        $control->onSaveNoFile[] = function () use ($control)
        {
            $control->redrawControl('modal');
            $control->redrawControl('title');

            $control->redrawControl('formNoFile');
            $control->redrawControl('formFile');
            $control->redrawControl('formMain');

            $this->redrawPrinters();
        };


        $control->onSaveFile[] = function () use ($control)
        {
            $control->redrawControl('modal');
            $control->redrawControl('formFile');

            $this->redrawPrinters();
        };


        $control->onSaveMain[] = function () use ($control)
        {
            $control->redrawControl('modal');
            $control->redrawControl('formMain');

            $this->redrawPrinters();
        };


        return $control;
    }
protected function createComponentStructureStructureModal() : object
    {
        $control = $this->IStructure_StructureModal->create();


        $control->onOpen[] = function () use ($control)
        {
            $control->redrawControl('modal');
            $control->redrawControl('title');

            $control->redrawControl('formNoFile');
            $control->redrawControl('formFile');
            $control->redrawControl('formMain');
        };


        $control->onSaveNoFile[] = function () use ($control)
        {
            $control->redrawControl('modal');
            $control->redrawControl('title');

            $control->redrawControl('formNoFile');
            $control->redrawControl('formFile');
            $control->redrawControl('formMain');

            $this->redrawPrinters();
        };


        $control->onSaveFile[] = function () use ($control)
        {
            $control->redrawControl('modal');
            $control->redrawControl('formFile');

            $this->redrawPrinters();
        };


        $control->onSaveMain[] = function () use ($control)
        {
            $control->redrawControl('modal');
            $control->redrawControl('formMain');

            $this->redrawPrinters();
        };


        return $control;
    }
protected function createComponentStructureStructureModal ( ) : object { $ control = $ this -> IStructure_StructureModal -> create ( ) ; $ control -> onOpen [ ] = function ( ) use ( $ control ) { $ control -> redrawControl ( 'modal' ) ; $ control -> redrawControl ( 'title' ) ; $ control -> redrawControl ( 'formNoFile' ) ; $ control -> redrawControl ( 'formFile' ) ; $ control -> redrawControl ( 'formMain' ) ; } ; $ control -> onSaveNoFile [ ] = function ( ) use ( $ control ) { $ control -> redrawControl ( 'modal' ) ; $ control -> redrawControl ( 'title' ) ; $ control -> redrawControl ( 'formNoFile' ) ; $ control -> redrawControl ( 'formFile' ) ; $ control -> redrawControl ( 'formMain' ) ; $ this -> redrawPrinters ( ) ; } ; $ control -> onSaveFile [ ] = function ( ) use ( $ control ) { $ control -> redrawControl ( 'modal' ) ; $ control -> redrawControl ( 'formFile' ) ; $ this -> redrawPrinters ( ) ; } ; $ control -> onSaveMain [ ] = function ( ) use ( $ control ) { $ control -> redrawControl ( 'modal' ) ; $ control -> redrawControl ( 'formMain' ) ; $ this -> redrawPrinters ( ) ; } ; return $ control ; }
Modální okno pro nastavení hodnot struktur
@return StructureModal
Modální okno pro nastavení hodnot struktur