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