vitiko / IphpFileStoreBundle

Symfony 2 file upload for doctrine entities
http://symfonydev.ru/iphpfilestorebundle/
51 stars 23 forks source link

Transliteration question #32

Closed LouTerrailloune closed 8 years ago

LouTerrailloune commented 9 years ago

Hi all,

What is exactly the point of the translitRename function ? Is it a subjective transformation or is it a way to transform the filename/dirname so that it match ^[a-z0-9-]+$ ?

vitiko commented 9 years ago

Hi,

way to transform the filename/dirname so that it match ^[a-z0-9-]+$,

like function transliterator_transliterate('Any-Latin; Latin-ASCII; Lower()',$a, $b)

http://php.net/manual/en/transliterator.transliterate.php