db
IZON\File Namespace Reference

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)
 

Detailed Description

pro praci se soubory

Function Documentation

◆ copy()

IZON\File\copy (   $source,
  $destination,
  $options = [] 
)
Parameters
File | string$sourcefrom where copy file
string$destinationwhere to copy file
array$optionsoptions for file coping

◆ deleteRecursivelly()

IZON\File\deleteRecursivelly (   $dir)

smaze obsah adresare kompletne rekurzivne

Parameters
string$dir

◆ isInSubDir()

IZON\File\isInSubDir (   $fimeName,
  $dirPath 
)

vraci true pokud ze se soubor $fimeName nachazi v adresari $dirName

Parameters
string$fimeName
string$dirName

◆ isPathInSubDir()

IZON\File\isPathInSubDir (   $path,
  $dirPath 
)

vraci true pokud se cesta $path nachazi v adresari $dirPath

Parameters
string$path
string$dirPath

◆ move()

IZON\File\move (   $source,
  $destination,
  $options = [] 
)

presune sobor do jineho adresare

Parameters
File | string$sourcefrom where copy file
string$destinationwhere to copy file
array$optionsoptions for file coping

◆ normalizeFileName()

IZON\File\normalizeFileName (   $fileName)

normalizuje nazev souboru tim ze zmeni \ na / a pokud obsahuje pismeno jednotky tak ho prevede na male pismeno

Parameters
string$fileName
Returns
string normalizovany nazev souboru

◆ normalizePath()

IZON\File\normalizePath (   $path)

normalizuje nazev souboru tim ze zmeni \ na / a pokud obsahuje pismeno jednotky tak ho prevede na male pismeno

Parameters
string$path
Returns
string normalizovany nazev souboru

◆ saveToFile()

IZON\File\saveToFile (   $file,
  $data,
  $mode = 'w+',
  $privs = 0777 
)

Ulozi data do souboru

Parameters
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