Commit | Line | Data |
---|---|---|
4bcd4c62 TO |
1 | <?php |
2 | namespace Civi\Setup\Event; | |
3 | ||
4 | /** | |
5 | * Check if the current user is authorized to perform installations. | |
6 | * | |
7 | * Event Name: 'civi.setup.checkAuthorized' | |
8 | */ | |
9 | class CheckAuthorizedEvent extends BaseSetupEvent { | |
10 | ||
11 | /** | |
12 | * @var bool | |
13 | */ | |
14 | private $authorized = FALSE; | |
15 | ||
16 | /** | |
17 | * @return bool | |
18 | */ | |
19 | public function isAuthorized() { | |
20 | return $this->authorized; | |
21 | } | |
22 | ||
23 | /** | |
24 | * @param bool $authorized | |
25 | */ | |
26 | public function setAuthorized($authorized) { | |
27 | $this->authorized = $authorized; | |
28 | } | |
29 | ||
30 | } |