public function collectFiles(FileEvent $e)
    {
        $this->appendPDF = array();
        $files = $e->getAllFiles();
        foreach ($files as $name => $file) {
            if (!empty($file) && $file instanceof FileEntity) {
                if (0 === strpos($file->getType(), 'image')) {
                    $this->appendImage[] = $file;
                }
                if (strtolower($file->getType()) == 'application/pdf') {
                    $this->appendPDF[] = $file;
                }
            }
        }
        return null;
    }
public function collectFiles(FileEvent $e)
    {
        $this->appendPDF = array();
        $files = $e->getAllFiles();
        foreach ($files as $name => $file) {
            if (!empty($file) && $file instanceof FileEntity) {
                if (0 === strpos($file->getType(), 'image')) {
                    $this->appendImage[] = $file;
                }
                if (strtolower($file->getType()) == 'application/pdf') {
                    $this->appendPDF[] = $file;
                }
            }
        }
        return null;
    }
public function collectFiles ( FileEvent $ e ) { $ this -> appendPDF = array ( ) ; $ files = $ e -> getAllFiles ( ) ; foreach ( $ files as $ name => $ file ) { if ( ! empty ( $ file ) && $ file instanceof FileEntity ) { if ( 0 === strpos ( $ file -> getType ( ) , 'image' ) ) { $ this -> appendImage [ ] = $ file ; } if ( strtolower ( $ file -> getType ( ) ) == 'application/pdf' ) { $ this -> appendPDF [ ] = $ file ; } } } return null ; }
give a summary of all inserted Files,
this is for having access to those files in the post-process
@param \Core\View\Helper\InsertFile\FileEvent|\Zend\View\ViewEvent $e
@return NULL
give a summary of all inserted Files this is for having access to those files in the post - process