ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilUtilitiesSetupConfig.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 2019 Richard Klees <richard.klees@concepts-and-training.de> Extended GPL, see docs/LICENSE */
4
6
8{
13
17 protected $path_to_zip;
18
22 protected $path_to_unzip;
23
24 public function __construct(
25 string $path_to_convert,
26 string $path_to_zip,
27 string $path_to_unzip
28 ) {
29 $this->path_to_convert = $this->toLinuxConvention($path_to_convert);
30 $this->path_to_zip = $this->toLinuxConvention($path_to_zip);
31 $this->path_to_unzip = $this->toLinuxConvention($path_to_unzip);
32 }
33
34 protected function toLinuxConvention(?string $p) : ?string
35 {
36 if (!$p) {
37 return null;
38 }
39 return preg_replace("/\\\\/", "/", $p);
40 }
41
42 public function getPathToConvert() : string
43 {
45 }
46
47 public function getPathToZip() : string
48 {
49 return $this->path_to_zip;
50 }
51
52 public function getPathToUnzip() : string
53 {
55 }
56}
An exception for terminatinating execution or to throw for unit testing.
__construct(string $path_to_convert, string $path_to_zip, string $path_to_unzip)
A configuration for the setup.
Definition: Config.php:11
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...