45 string $targetFormat =
'',
46 string $geometry =
'',
47 string $backgroundColor =
'' 65 public function zip(
string $exportPath,
string $zipPath)
75 public function deliverFile(
string $zipPath,
string $zipFileName,
string $mime)
84 public function getDir(
string $copyDirectory) : array
93 public function unzip(
string $file,
bool $overwrite)
119 bool $raise_errors =
true,
120 string $mode =
'move_uploaded' 122 return ilUtil::moveUploadedFile(
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms public
static deliverData($a_data, $a_filename, $mime="application/octet-stream", $charset="")
deliver data for download via browser.
zip(string $exportPath, string $zipPath)
static unzip($a_file, $overwrite=false, $a_flat=false)
unzip file
static getDir($a_dir, $a_rec=false, $a_sub_dir="")
get directory
prepareFormOutput(string $string)
stripSlashes(string $string)
moveUploadedFile(string $file, string $name, string $target, bool $raise_errors=true, string $mode='move_uploaded')
unzip(string $file, bool $overwrite)
deliverFile(string $zipPath, string $zipFileName, string $mime)
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
static convertImage( $a_from, $a_to, $a_target_format="", $a_geometry="", $a_background_color="")
convert image
getImagePath($img, $module_path="", $mode="output", $offline=false)
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
static zip($a_dir, $a_file, $compress_content=false)
zips given directory/file into given zip.file
deliverData(string $data, string $fileName, string $mimeType)
Just a wrapper class to create Unit Test for other classes.
convertImage(string $from, string $to, string $targetFormat='', string $geometry='', string $backgroundColor='')
getDir(string $copyDirectory)
static delDir($a_dir, $a_clean_only=false)
removes a dir and all its content (subdirs and files) recursively
static deliverFile( $a_file, $a_filename, $a_mime='', $isInline=false, $removeAfterDelivery=false, $a_exit_after=true)
deliver file for download via browser.