Commit | Line | Data |
---|---|---|
4bcd4c62 TO |
1 | <?php |
2 | namespace Civi\Setup\Event; | |
3 | ||
4 | /** | |
5 | * Check if CiviCRM is already installed. | |
6 | * | |
7 | * Event Name: 'civi.setup.checkInstalled' | |
8 | */ | |
9 | class CheckInstalledEvent extends BaseSetupEvent { | |
10 | ||
11 | /** | |
12 | * @var bool | |
13 | */ | |
14 | private $settingInstalled = NULL; | |
15 | ||
16 | /** | |
17 | * @var bool | |
18 | */ | |
19 | private $databaseInstalled = NULL; | |
20 | ||
21 | /** | |
22 | * @return bool | |
23 | */ | |
24 | public function isSettingInstalled() { | |
25 | return $this->settingInstalled; | |
26 | } | |
27 | ||
28 | /** | |
29 | * @param bool $settingInstalled | |
30 | */ | |
31 | public function setSettingInstalled($settingInstalled) { | |
32 | $this->settingInstalled = $settingInstalled; | |
33 | } | |
34 | ||
35 | /** | |
36 | * @return bool | |
37 | */ | |
38 | public function isDatabaseInstalled() { | |
39 | return $this->databaseInstalled; | |
40 | } | |
41 | ||
42 | /** | |
43 | * @param bool $databaseInstalled | |
44 | */ | |
45 | public function setDatabaseInstalled($databaseInstalled) { | |
46 | $this->databaseInstalled = $databaseInstalled; | |
47 | } | |
48 | ||
49 | } |