concrete/controllers/dialog/file/import.php
protected function setViewSets()
    {
        $config = $this->app->make('config');
        $this->set('formID', 'ccm-file-manager-import-files-' . $this->app->make(Identifier::class)->getString(32));
        $this->set('currentFolder', $this->getCurrentFolder());
        $this->set('originalPage', $this->getOriginalPage());
        $this->set('isChunkingEnabled', (bool) $config->get('concrete.upload.chunking.enabled'));
        $chunkSize = (int) $config->get('concrete.upload.chunking.chunkSize');
        if ($chunkSize < 1) {
            $chunkSize = $this->getAutomaticChunkSize();
        }
        $this->set('chunkSize', $chunkSize);
        $incoming = $this->app->make(Incoming::class);
        $this->set('incomingStorageLocation', $incoming->getIncomingStorageLocation());
        $this->set('incomingPath', $incoming->getIncomingPath());
        try {
            $incomingContents = $this->getIncomingFiles();
            $incomingContentsError = null;
        } catch (Exception $e) {
            $incomingContents = [];
            $incomingContentsError = $e->getMessage();
            $incomingContents = $e;
        } catch (Throwable $e) {
            $incomingContents = [];
            $incomingContentsError = $e->getMessage();
        }
        $this->set('incomingContents', $incomingContents);
        $this->set('incomingContentsError', $incomingContentsError);
        $this->set('replacingFile', null);
    }
protected function setViewSets()
    {
        $config = $this->app->make('config');
        $this->set('formID', 'ccm-file-manager-import-files-' . $this->app->make(Identifier::class)->getString(32));
        $this->set('currentFolder', $this->getCurrentFolder());
        $this->set('originalPage', $this->getOriginalPage());
        $this->set('isChunkingEnabled', (bool) $config->get('concrete.upload.chunking.enabled'));
        $chunkSize = (int) $config->get('concrete.upload.chunking.chunkSize');
        if ($chunkSize < 1) {
            $chunkSize = $this->getAutomaticChunkSize();
        }
        $this->set('chunkSize', $chunkSize);
        $incoming = $this->app->make(Incoming::class);
        $this->set('incomingStorageLocation', $incoming->getIncomingStorageLocation());
        $this->set('incomingPath', $incoming->getIncomingPath());
        try {
            $incomingContents = $this->getIncomingFiles();
            $incomingContentsError = null;
        } catch (Exception $e) {
            $incomingContents = [];
            $incomingContentsError = $e->getMessage();
            $incomingContents = $e;
        } catch (Throwable $e) {
            $incomingContents = [];
            $incomingContentsError = $e->getMessage();
        }
        $this->set('incomingContents', $incomingContents);
        $this->set('incomingContentsError', $incomingContentsError);
        $this->set('replacingFile', null);
    }
protected function setViewSets ( ) { $ config = $ this -> app -> make ( 'config' ) ; $ this -> set ( 'formID' , 'ccm-file-manager-import-files-' . $ this -> app -> make ( Identifier :: class ) -> getString ( 32 ) ) ; $ this -> set ( 'currentFolder' , $ this -> getCurrentFolder ( ) ) ; $ this -> set ( 'originalPage' , $ this -> getOriginalPage ( ) ) ; $ this -> set ( 'isChunkingEnabled' , ( bool ) $ config -> get ( 'concrete.upload.chunking.enabled' ) ) ; $ chunkSize = ( int ) $ config -> get ( 'concrete.upload.chunking.chunkSize' ) ; if ( $ chunkSize < 1 ) { $ chunkSize = $ this -> getAutomaticChunkSize ( ) ; } $ this -> set ( 'chunkSize' , $ chunkSize ) ; $ incoming = $ this -> app -> make ( Incoming :: class ) ; $ this -> set ( 'incomingStorageLocation' , $ incoming -> getIncomingStorageLocation ( ) ) ; $ this -> set ( 'incomingPath' , $ incoming -> getIncomingPath ( ) ) ; try { $ incomingContents = $ this -> getIncomingFiles ( ) ; $ incomingContentsError = null ; } catch ( Exception $ e ) { $ incomingContents = [ ] ; $ incomingContentsError = $ e -> getMessage ( ) ; $ incomingContents = $ e ; } catch ( Throwable $ e ) { $ incomingContents = [ ] ; $ incomingContentsError = $ e -> getMessage ( ) ; } $ this -> set ( 'incomingContents' , $ incomingContents ) ; $ this -> set ( 'incomingContentsError' , $ incomingContentsError ) ; $ this -> set ( 'replacingFile' , null ) ; }
Set the variables for the view.
Set the variables for the view .