ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
ilCertificateUtilHelper Class Reference

Just a wrapper class to create Unit Test for other classes. More...

+ Collaboration diagram for ilCertificateUtilHelper:

Public Member Functions

 deliverData (string $data, string $fileName, string $mimeType)
 
 prepareFormOutput (string $string)
 
 convertImage (string $from, string $to, string $targetFormat='', string $geometry='', string $backgroundColor='')
 
 stripSlashes (string $string)
 
 zip (string $exportPath, string $zipPath)
 
 deliverFile (string $zipPath, string $zipFileName, string $mime)
 
 getDir (string $copyDirectory)
 
 unzip (string $file, bool $overwrite)
 
 delDir (string $path)
 
 moveUploadedFile (string $file, string $name, string $target, bool $raise_errors=true, string $mode='move_uploaded')
 
 getImagePath ($img, $module_path="", $mode="output", $offline=false)
 

Detailed Description

Just a wrapper class to create Unit Test for other classes.

Can be remove when the static method calls have been removed

Author
Niels Theen nthee.nosp@m.n@da.nosp@m.tabay.nosp@m..de

Definition at line 10 of file ilCertificateUtilHelper.php.

Member Function Documentation

◆ convertImage()

ilCertificateUtilHelper::convertImage ( string  $from,
string  $to,
string  $targetFormat = '',
string  $geometry = '',
string  $backgroundColor = '' 
)
Parameters
string$from
string$to
string$targetFormat
string$geometry
string$backgroundColor

Definition at line 42 of file ilCertificateUtilHelper.php.

48 {
49 return ilUtil::convertImage($from, $to, $targetFormat, $geometry, $backgroundColor);
50 }
static convertImage( $a_from, $a_to, $a_target_format="", $a_geometry="", $a_background_color="")
convert image

References ilUtil\convertImage().

+ Here is the call graph for this function:

◆ delDir()

ilCertificateUtilHelper::delDir ( string  $path)
Parameters
string$path

Definition at line 101 of file ilCertificateUtilHelper.php.

102 {
103 ilUtil::delDir($path);
104 }
static delDir($a_dir, $a_clean_only=false)
removes a dir and all its content (subdirs and files) recursively

References ilUtil\delDir().

+ Here is the call graph for this function:

◆ deliverData()

ilCertificateUtilHelper::deliverData ( string  $data,
string  $fileName,
string  $mimeType 
)
Parameters
string$data
string$fileName
string$mimeType

Definition at line 17 of file ilCertificateUtilHelper.php.

18 {
20 $data,
21 $fileName,
22 $mimeType
23 );
24 }
static deliverData($a_data, $a_filename, $mime="application/octet-stream", $charset="")
deliver data for download via browser.
$data
Definition: storeScorm.php:23

References $data, and ilUtil\deliverData().

+ Here is the call graph for this function:

◆ deliverFile()

ilCertificateUtilHelper::deliverFile ( string  $zipPath,
string  $zipFileName,
string  $mime 
)
Parameters
string$zipPath
string$zipFileName
string$mime

Definition at line 75 of file ilCertificateUtilHelper.php.

76 {
77 ilUtil::deliverFile($zipPath, $zipFileName, $mime);
78 }
static deliverFile( $a_file, $a_filename, $a_mime='', $isInline=false, $removeAfterDelivery=false, $a_exit_after=true)
deliver file for download via browser.

References ilUtil\deliverFile().

+ Here is the call graph for this function:

◆ getDir()

ilCertificateUtilHelper::getDir ( string  $copyDirectory)
Parameters
string$copyDirectory
Returns
array

Definition at line 84 of file ilCertificateUtilHelper.php.

84 : array
85 {
86 return ilUtil::getDir($copyDirectory);
87 }
static getDir($a_dir, $a_rec=false, $a_sub_dir="")
get directory

References ilUtil\getDir().

+ Here is the call graph for this function:

◆ getImagePath()

ilCertificateUtilHelper::getImagePath (   $img,
  $module_path = "",
  $mode = "output",
  $offline = false 
)
Parameters
$img
string$module_path
string$mode
bool$offline
Returns
string

Definition at line 138 of file ilCertificateUtilHelper.php.

139 {
141 $img,
142 $module_path,
143 $mode,
144 $offline
145 );
146 }
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)

References $img, and ilUtil\getImagePath().

+ Here is the call graph for this function:

◆ moveUploadedFile()

ilCertificateUtilHelper::moveUploadedFile ( string  $file,
string  $name,
string  $target,
bool  $raise_errors = true,
string  $mode = 'move_uploaded' 
)
Parameters
string$file
string$name
string$target
bool$raise_errors
string$mode
Returns
bool
Exceptions
ilException

Definition at line 115 of file ilCertificateUtilHelper.php.

121 {
123 $file,
124 $name,
125 $target,
126 $raise_errors,
127 $mode
128 );
129 }
static moveUploadedFile($a_file, $a_name, $a_target, $a_raise_errors=true, $a_mode="move_uploaded")
move uploaded file
if($format !==null) $name
Definition: metadata.php:230

References $name, and ilUtil\moveUploadedFile().

+ Here is the call graph for this function:

◆ prepareFormOutput()

ilCertificateUtilHelper::prepareFormOutput ( string  $string)
Parameters
string$string
Returns
string

Definition at line 30 of file ilCertificateUtilHelper.php.

30 : string
31 {
32 return ilUtil::prepareFormOutput($string);
33 }
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms @access public

References ilUtil\prepareFormOutput().

+ Here is the call graph for this function:

◆ stripSlashes()

ilCertificateUtilHelper::stripSlashes ( string  $string)
Parameters
string$string
Returns
mixed|null|string|string[]

Definition at line 56 of file ilCertificateUtilHelper.php.

56 : string
57 {
58 return ilUtil::stripSlashes($string);
59 }
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled

References ilUtil\stripSlashes().

+ Here is the call graph for this function:

◆ unzip()

ilCertificateUtilHelper::unzip ( string  $file,
bool  $overwrite 
)
Parameters
string$file
bool$overwrite

Definition at line 93 of file ilCertificateUtilHelper.php.

94 {
95 ilUtil::unzip($file, $overwrite);
96 }
static unzip($a_file, $overwrite=false, $a_flat=false)
unzip file

References ilUtil\unzip().

+ Here is the call graph for this function:

◆ zip()

ilCertificateUtilHelper::zip ( string  $exportPath,
string  $zipPath 
)
Parameters
string$exportPath
string$zipPath

Definition at line 65 of file ilCertificateUtilHelper.php.

66 {
67 ilUtil::zip($exportPath, $zipPath);
68 }
static zip($a_dir, $a_file, $compress_content=false)
zips given directory/file into given zip.file

References ilUtil\zip().

+ Here is the call graph for this function:

The documentation for this class was generated from the following file: