ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilUtilitiesSetupConfig.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21use ILIAS\Setup;
22
24{
25 protected string $path_to_convert;
26 protected string $path_to_zip;
27 protected string $path_to_unzip;
28
29 public function __construct(
30 string $path_to_convert,
31 string $path_to_zip,
32 string $path_to_unzip
33 ) {
34 $this->path_to_convert = $this->toLinuxConvention($path_to_convert);
35 $this->path_to_zip = $this->toLinuxConvention($path_to_zip);
36 $this->path_to_unzip = $this->toLinuxConvention($path_to_unzip);
37 }
38
39 protected function toLinuxConvention(?string $p): ?string
40 {
41 if (!$p) {
42 return null;
43 }
44 return preg_replace("/\\\\/", "/", $p);
45 }
46
47 public function getPathToConvert(): string
48 {
50 }
51
52 public function getPathToZip(): string
53 {
54 return $this->path_to_zip;
55 }
56
57 public function getPathToUnzip(): string
58 {
60 }
61}
__construct(string $path_to_convert, string $path_to_zip, string $path_to_unzip)
A configuration for the setup.
Definition: Config.php:27
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...