ILIAS  release_8 Revision v8.23
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 (string $img, string $module_path="", string $mode="output", bool $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 26 of file ilCertificateUtilHelper.php.

Member Function Documentation

◆ convertImage()

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

Definition at line 42 of file ilCertificateUtilHelper.php.

References ilShellUtil\convertImage().

48  : void {
49  ilShellUtil::convertImage($from, $to, $targetFormat, $geometry, $backgroundColor);
50  }
static convertImage(string $a_from, string $a_to, string $a_target_format="", string $a_geometry="", string $a_background_color="")
convert image
+ Here is the call graph for this function:

◆ delDir()

ilCertificateUtilHelper::delDir ( string  $path)

Definition at line 77 of file ilCertificateUtilHelper.php.

References ilFileUtils\delDir().

77  : void
78  {
80  }
$path
Definition: ltiservices.php:32
static delDir(string $a_dir, bool $a_clean_only=false)
removes a dir and all its content (subdirs and files) recursively
+ Here is the call graph for this function:

◆ deliverData()

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

Definition at line 28 of file ilCertificateUtilHelper.php.

References ilUtil\deliverData().

28  : void
29  {
31  $data,
32  $fileName,
33  $mimeType
34  );
35  }
static deliverData(string $a_data, string $a_filename, string $mime="application/octet-stream")
+ Here is the call graph for this function:

◆ deliverFile()

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

Definition at line 62 of file ilCertificateUtilHelper.php.

References ilFileDelivery\deliverFileLegacy().

62  : void
63  {
64  ilFileDelivery::deliverFileLegacy($zipPath, $zipFileName, $mime);
65  }
static deliverFileLegacy(string $a_file, ?string $a_filename=null, ?string $a_mime=null, ?bool $isInline=false, ?bool $removeAfterDelivery=false, ?bool $a_exit_after=true)
+ Here is the call graph for this function:

◆ getDir()

ilCertificateUtilHelper::getDir ( string  $copyDirectory)

Definition at line 67 of file ilCertificateUtilHelper.php.

References ilFileUtils\getDir().

67  : array
68  {
69  return ilFileUtils::getDir($copyDirectory);
70  }
static getDir(string $a_dir, bool $a_rec=false, ?string $a_sub_dir="")
get directory
+ Here is the call graph for this function:

◆ getImagePath()

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

Definition at line 107 of file ilCertificateUtilHelper.php.

References ilUtil\getImagePath().

112  : string {
113  return ilUtil::getImagePath(
114  $img,
115  $module_path,
116  $mode,
117  $offline
118  );
119  }
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
$img
Definition: imgupload.php:83
+ 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 91 of file ilCertificateUtilHelper.php.

References ilFileUtils\moveUploadedFile().

97  : bool {
99  $file,
100  $name,
101  $target,
102  $raise_errors,
103  $mode
104  );
105  }
if($format !==null) $name
Definition: metadata.php:247
static moveUploadedFile(string $a_file, string $a_name, string $a_target, bool $a_raise_errors=true, string $a_mode="move_uploaded")
move uploaded file
+ Here is the call graph for this function:

◆ prepareFormOutput()

ilCertificateUtilHelper::prepareFormOutput ( string  $string)

Definition at line 37 of file ilCertificateUtilHelper.php.

References ilLegacyFormElementsUtil\prepareFormOutput().

37  : string
38  {
40  }
static prepareFormOutput($a_str, bool $a_strip=false)
+ Here is the call graph for this function:

◆ stripSlashes()

ilCertificateUtilHelper::stripSlashes ( string  $string)

Definition at line 52 of file ilCertificateUtilHelper.php.

References ilUtil\stripSlashes().

52  : string
53  {
54  return ilUtil::stripSlashes($string);
55  }
static stripSlashes(string $a_str, bool $a_strip_html=true, string $a_allow="")
+ Here is the call graph for this function:

◆ unzip()

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

Definition at line 72 of file ilCertificateUtilHelper.php.

References ilFileUtils\unzip().

72  : void
73  {
74  ilFileUtils::unzip($file, $overwrite);
75  }
static unzip(string $path_to_zip_file, bool $overwrite_existing=false, bool $unpack_flat=false)
+ Here is the call graph for this function:

◆ zip()

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

Definition at line 57 of file ilCertificateUtilHelper.php.

References ilFileUtils\zip().

57  : void
58  {
59  ilFileUtils::zip($exportPath, $zipPath);
60  }
static zip(string $a_dir, string $a_file, bool $compress_content=false)
zips given directory/file into given zip.file
+ Here is the call graph for this function:

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