private function createImagens(string $file, array $data, string $pathFile)
    {
        Helper::createFolderIfNoExist(PATH_HOME . "assetsPublic/img");
        foreach ($data as $datum) {
            if (!empty($datum['imagens']) && !file_exists(PATH_HOME . "assetsPublic/img/{$datum['nome']}")) {
                Helper::createFolderIfNoExist(PATH_HOME . "assetsPublic/img/{$datum['nome']}");
                foreach ($datum['imagens'] as $file) {
                    if (!file_exists(PATH_HOME . "assetsPublic/img/{$datum['nome']}/{$file['name']}"))
                        copy($file['content'], PATH_HOME . "assetsPublic/img/{$datum['nome']}/{$file['name']}");
                }
            }
        }
    }
private function createImagens(string $file, array $data, string $pathFile)
    {
        Helper::createFolderIfNoExist(PATH_HOME . "assetsPublic/img");
        foreach ($data as $datum) {
            if (!empty($datum['imagens']) && !file_exists(PATH_HOME . "assetsPublic/img/{$datum['nome']}")) {
                Helper::createFolderIfNoExist(PATH_HOME . "assetsPublic/img/{$datum['nome']}");
                foreach ($datum['imagens'] as $file) {
                    if (!file_exists(PATH_HOME . "assetsPublic/img/{$datum['nome']}/{$file['name']}"))
                        copy($file['content'], PATH_HOME . "assetsPublic/img/{$datum['nome']}/{$file['name']}");
                }
            }
        }
    }
private function createImagens ( string $ file , array $ data , string $ pathFile ) { Helper :: createFolderIfNoExist ( PATH_HOME . "assetsPublic/img" ) ; foreach ( $ data as $ datum ) { if ( ! empty ( $ datum [ 'imagens' ] ) && ! file_exists ( PATH_HOME . "assetsPublic/img/{$datum['nome']}" ) ) { Helper :: createFolderIfNoExist ( PATH_HOME . "assetsPublic/img/{$datum['nome']}" ) ; foreach ( $ datum [ 'imagens' ] as $ file ) { if ( ! file_exists ( PATH_HOME . "assetsPublic/img/{$datum['nome']}/{$file['name']}" ) ) copy ( $ file [ 'content' ] , PATH_HOME . "assetsPublic/img/{$datum['nome']}/{$file['name']}" ) ; } } } }
Cria as imagens
@param string $file
@param array $data
@param string $pathFile
Cria as imagens