‪TYPO3CMS  10.4
Confirmation.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
5 /*
6  * This file is part of the TYPO3 CMS project.
7  *
8  * It is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU General Public License, either version 2
10  * of the License, or any later version.
11  *
12  * For the full copyright and license information, please read the
13  * LICENSE.txt file that was distributed with this source code.
14  *
15  * The TYPO3 project - inspiring people to share!
16  */
17 
19 
21 {
25  protected ‪$defaultValue = false;
26 
30  protected ‪$title = '';
31 
35  protected ‪$message = '';
36 
40  protected ‪$confirm;
41 
45  protected ‪$deny;
46 
50  protected ‪$required;
51 
60  public function ‪__construct(
61  string ‪$title,
62  string ‪$message,
63  bool ‪$defaultValue = false,
64  string ‪$confirm = 'Yes, execute',
65  string ‪$deny = 'No, do not execute',
66  bool ‪$required = false
67  ) {
68  $this->title = ‪$title;
69  $this->message = ‪$message;
70  $this->defaultValue = ‪$defaultValue;
71  $this->confirm = ‪$confirm;
72  $this->deny = ‪$deny;
73  $this->required = ‪$required;
74  }
75 
79  public function ‪getConfirm(): string
80  {
82  }
83 
87  public function ‪getDeny(): string
88  {
90  }
91 
95  public function ‪isRequired(): bool
96  {
98  }
99 
103  public function ‪getDefaultValue(): bool
104  {
106  }
107 
111  public function ‪getTitle(): string
112  {
114  }
115 
119  public function ‪getMessage(): string
120  {
121  return ‪$this->message;
122  }
123 }
‪TYPO3\CMS\Install\Updates\Confirmation\getDefaultValue
‪bool getDefaultValue()
Definition: Confirmation.php:97
‪TYPO3\CMS\Install\Updates\Confirmation\$defaultValue
‪bool $defaultValue
Definition: Confirmation.php:24
‪TYPO3\CMS\Install\Updates\Confirmation\getDeny
‪string getDeny()
Definition: Confirmation.php:81
‪TYPO3\CMS\Install\Updates\Confirmation\isRequired
‪bool isRequired()
Definition: Confirmation.php:89
‪TYPO3\CMS\Install\Updates\Confirmation\__construct
‪__construct(string $title, string $message, bool $defaultValue=false, string $confirm='Yes, execute', string $deny='No, do not execute', bool $required=false)
Definition: Confirmation.php:54
‪TYPO3\CMS\Install\Updates\Confirmation\$deny
‪string $deny
Definition: Confirmation.php:40
‪TYPO3\CMS\Install\Updates
Definition: AbstractDownloadExtensionUpdate.php:16
‪TYPO3\CMS\Install\Updates\Confirmation\$confirm
‪string $confirm
Definition: Confirmation.php:36
‪TYPO3\CMS\Install\Updates\Confirmation
Definition: Confirmation.php:21
‪TYPO3\CMS\Install\Updates\Confirmation\$message
‪string $message
Definition: Confirmation.php:32
‪TYPO3\CMS\Install\Updates\Confirmation\getMessage
‪string getMessage()
Definition: Confirmation.php:113
‪TYPO3\CMS\Install\Updates\Confirmation\getTitle
‪string getTitle()
Definition: Confirmation.php:105
‪TYPO3\CMS\Install\Updates\Confirmation\$title
‪string $title
Definition: Confirmation.php:28
‪TYPO3\CMS\Install\Updates\Confirmation\getConfirm
‪string getConfirm()
Definition: Confirmation.php:73
‪TYPO3\CMS\Install\Updates\Confirmation\$required
‪bool $required
Definition: Confirmation.php:44