Functions | |
| copy ($source, $destination, $options=[]) | |
| move ($source, $destination, $options=[]) | |
| saveToFile ($file, $data, $mode='w+', $privs=0777) | |
| normalizeFileName ($fileName) | |
| isInSubDir ($fimeName, $dirPath) | |
| normalizePath ($path) | |
| isPathInSubDir ($path, $dirPath) | |
| deleteRecursivelly ($dir) | |
pro praci se soubory
| IZON\File\copy | ( | $source, | |
| $destination, | |||
$options = [] |
|||
| ) |
| File | string | $source | from where copy file |
| string | $destination | where to copy file |
| array | $options | options for file coping |
| IZON\File\deleteRecursivelly | ( | $dir | ) |
smaze obsah adresare kompletne rekurzivne
| string | $dir |
| IZON\File\isInSubDir | ( | $fimeName, | |
| $dirPath | |||
| ) |
vraci true pokud ze se soubor $fimeName nachazi v adresari $dirName
| string | $fimeName | |
| string | $dirName |
| IZON\File\isPathInSubDir | ( | $path, | |
| $dirPath | |||
| ) |
vraci true pokud se cesta $path nachazi v adresari $dirPath
| string | $path | |
| string | $dirPath |
| IZON\File\move | ( | $source, | |
| $destination, | |||
$options = [] |
|||
| ) |
presune sobor do jineho adresare
| File | string | $source | from where copy file |
| string | $destination | where to copy file |
| array | $options | options for file coping |
| IZON\File\normalizeFileName | ( | $fileName | ) |
normalizuje nazev souboru tim ze zmeni \ na / a pokud obsahuje pismeno jednotky tak ho prevede na male pismeno
| string | $fileName |
| IZON\File\normalizePath | ( | $path | ) |
normalizuje nazev souboru tim ze zmeni \ na / a pokud obsahuje pismeno jednotky tak ho prevede na male pismeno
| string | $path |
| IZON\File\saveToFile | ( | $file, | |
| $data, | |||
$mode = 'w+', |
|||
$privs = 0777 |
|||
| ) |
Ulozi data do souboru
| string | $file | - uplna cesta k souboru |
| string | $data | - obsah souboru |
| string | $mode | - mod, v jakem bude soubor vytvoren, defaultne w+ |
| number | $privs | - z jakymi pravy se ma soubor ulozit |