Commit 9163b2e 1 parent 081c215 commit 9163b2e Copy full SHA for 9163b2e
File tree 1 file changed +30
-0
lines changed
1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change
1
+ <?php
2
+ /*-------------------------------------------------------+
3
+ | SYSTOPIA - Contact Inactive |
4
+ | Copyright (C) 2017 SYSTOPIA |
5
+ | Author: M. Wire (mjw@mjwconsult.co.uk) |
6
+ | http://www.systopia.de/ |
7
+ +--------------------------------------------------------+
8
+ | This program is released as free software under the |
9
+ | Affero GPL license. You can redistribute it and/or |
10
+ | modify it under the terms of this license which you |
11
+ | can read by viewing the included agpl.txt or online |
12
+ | at www.gnu.org/licenses/agpl.html. Removal of this |
13
+ | copyright header is strictly prohibited without |
14
+ | written permission from the original author(s). |
15
+ +--------------------------------------------------------*/
16
+
17
+ class CRM_Contactinactive_Utils {
18
+ CONST CONTACTINACTIVE_PREFERENCES_NAME = 'ContactInactive Preferences ' ;
19
+
20
+ /**
21
+ * Returns settings
22
+ */
23
+ static function getSettings ($ name = NULL ) {
24
+ return CRM_Core_BAO_Setting::getItem (CRM_Contactinactive_Utils::CONTACTINACTIVE_PREFERENCES_NAME , $ name );
25
+ }
26
+
27
+ static function setSetting ($ value , $ name ) {
28
+ CRM_Core_BAO_Setting::setItem ($ value , CRM_Contactinactive_Utils::CONTACTINACTIVE_PREFERENCES_NAME , $ name );
29
+ }
30
+ }
You can’t perform that action at this time.
0 commit comments