Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | <?php |
2 | /* | |
3 | +--------------------------------------------------------------------+ | |
06b69b18 | 4 | | CiviCRM version 4.5 | |
6a488035 | 5 | +--------------------------------------------------------------------+ |
06b69b18 | 6 | | Copyright CiviCRM LLC (c) 2004-2014 | |
6a488035 TO |
7 | +--------------------------------------------------------------------+ |
8 | | This file is a part of CiviCRM. | | |
9 | | | | |
10 | | CiviCRM is free software; you can copy, modify, and distribute it | | |
11 | | under the terms of the GNU Affero General Public License | | |
12 | | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. | | |
13 | | | | |
14 | | CiviCRM is distributed in the hope that it will be useful, but | | |
15 | | WITHOUT ANY WARRANTY; without even the implied warranty of | | |
16 | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | | |
17 | | See the GNU Affero General Public License for more details. | | |
18 | | | | |
19 | | You should have received a copy of the GNU Affero General Public | | |
20 | | License and the CiviCRM Licensing Exception along | | |
21 | | with this program; if not, contact CiviCRM LLC | | |
22 | | at info[AT]civicrm[DOT]org. If you have questions about the | | |
23 | | GNU Affero General Public License or the licensing of CiviCRM, | | |
24 | | see the CiviCRM license FAQ at http://civicrm.org/licensing | | |
25 | +--------------------------------------------------------------------+ | |
26 | */ | |
27 | ||
28 | /** | |
29 | * The extension manager handles installing, disabling enabling, and | |
30 | * uninstalling extensions. | |
31 | * | |
32 | * @package CRM | |
06b69b18 | 33 | * @copyright CiviCRM LLC (c) 2004-2014 |
6a488035 TO |
34 | * $Id$ |
35 | * | |
36 | */ | |
37 | interface CRM_Extension_Manager_Interface { | |
2d7fd075 TO |
38 | /** |
39 | * Perform type-specific installation logic (before marking the | |
40 | * extension as installed or clearing the caches). | |
41 | * | |
42 | * @param CRM_Extension_Info $info | |
43 | */ | |
6a488035 | 44 | public function onPreInstall(CRM_Extension_Info $info); |
2d7fd075 TO |
45 | |
46 | /** | |
47 | * Perform type-specific installation logic (after marking the | |
48 | * extension as installed but before clearing the caches). | |
49 | * | |
50 | * @param CRM_Extension_Info $info | |
51 | */ | |
6a488035 TO |
52 | public function onPostInstall(CRM_Extension_Info $info); |
53 | ||
2d7fd075 TO |
54 | /** |
55 | * Perform type-specific installation logic (after marking the | |
56 | * extension as installed and clearing the caches). | |
57 | * | |
58 | * @param CRM_Extension_Info $info | |
59 | */ | |
60 | public function onPostPostInstall(CRM_Extension_Info $info); | |
61 | ||
e0ef6999 EM |
62 | /** |
63 | * @param CRM_Extension_Info $info | |
64 | * | |
65 | * @return mixed | |
66 | */ | |
6a488035 | 67 | public function onPreEnable(CRM_Extension_Info $info); |
e0ef6999 EM |
68 | |
69 | /** | |
70 | * @param CRM_Extension_Info $info | |
71 | * | |
72 | * @return mixed | |
73 | */ | |
6a488035 TO |
74 | public function onPostEnable(CRM_Extension_Info $info); |
75 | ||
76 | /** | |
77 | * Perform type-specific removal logic (before updating the extension | |
78 | * row in the "civicrm_extension" table). | |
03e04002 | 79 | * |
6a488035 TO |
80 | * @param CRM_Extension_Info $info may be generated from xml or DB (which is lossy) |
81 | * @see CRM_Extension_Manager::createInfoFromDB | |
82 | */ | |
83 | public function onPreDisable(CRM_Extension_Info $info); | |
84 | ||
85 | /** | |
86 | * Perform type-specific removal logic (after updating the extension | |
87 | * row in the "civicrm_extension" table). | |
88 | * | |
89 | * @param CRM_Extension_Info $info may be generated from xml or DB (which is lossy) | |
90 | * @see CRM_Extension_Manager::createInfoFromDB | |
91 | */ | |
92 | public function onPostDisable(CRM_Extension_Info $info); | |
93 | ||
94 | /** | |
95 | * Perform type-specific removal logic (before removing the extension | |
96 | * row in the "civicrm_extension" table). | |
97 | * | |
98 | * @param CRM_Extension_Info $info may be generated from xml or DB (which is lossy) | |
99 | * @see CRM_Extension_Manager::createInfoFromDB | |
100 | */ | |
101 | public function onPreUninstall(CRM_Extension_Info $info); | |
102 | ||
103 | /** | |
104 | * Perform type-specific removal logic (after removing the extension | |
105 | * row in the "civicrm_extension" table). | |
106 | * | |
107 | * @param CRM_Extension_Info $info may be generated from xml or DB (which is lossy) | |
108 | * @see CRM_Extension_Manager::createInfoFromDB | |
109 | */ | |
110 | public function onPostUninstall(CRM_Extension_Info $info); | |
111 | ||
e0ef6999 EM |
112 | /** |
113 | * @param CRM_Extension_Info $oldInfo | |
114 | * @param CRM_Extension_Info $newInfo | |
115 | * | |
116 | * @return mixed | |
117 | */ | |
6a488035 | 118 | public function onPreReplace(CRM_Extension_Info $oldInfo, CRM_Extension_Info $newInfo); |
e0ef6999 EM |
119 | |
120 | /** | |
121 | * @param CRM_Extension_Info $oldInfo | |
122 | * @param CRM_Extension_Info $newInfo | |
123 | * | |
124 | * @return mixed | |
125 | */public function onPostReplace(CRM_Extension_Info $oldInfo, CRM_Extension_Info $newInfo); | |
6a488035 | 126 | } |