ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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.

References ilUtil\convertImage().

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

◆ delDir()

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

Definition at line 101 of file ilCertificateUtilHelper.php.

References ilUtil\delDir().

102  {
104  }
$path
Definition: aliased.php:25
static delDir($a_dir, $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 
)
Parameters
string$data
string$fileName
string$mimeType

Definition at line 17 of file ilCertificateUtilHelper.php.

References ilUtil\deliverData().

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: bench.php:6
+ 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.

References ilUtil\deliverFile().

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.
+ 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.

References ilUtil\getDir().

84  : array
85  {
86  return ilUtil::getDir($copyDirectory);
87  }
static getDir($a_dir, $a_rec=false, $a_sub_dir="")
get directory
+ 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.

References $img, and ilUtil\getImagePath().

139  {
140  return ilUtil::getImagePath(
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)
+ 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  {
122  return ilUtil::moveUploadedFile(
123  $file,
124  $name,
125  $target,
126  $raise_errors,
127  $mode
128  );
129  }
$target
Definition: test.php:19

◆ prepareFormOutput()

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

Definition at line 30 of file ilCertificateUtilHelper.php.

References ilUtil\prepareFormOutput().

30  : string
31  {
32  return ilUtil::prepareFormOutput($string);
33  }
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms public
+ 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.

References ilUtil\stripSlashes().

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
+ 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.

References ilUtil\unzip().

94  {
95  ilUtil::unzip($file, $overwrite);
96  }
static unzip($a_file, $overwrite=false, $a_flat=false)
unzip file
+ 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.

References ilUtil\zip().

66  {
67  ilUtil::zip($exportPath, $zipPath);
68  }
static zip($a_dir, $a_file, $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: