-
-
Notifications
You must be signed in to change notification settings - Fork 812
/
UF.php
59 lines (48 loc) · 1.82 KB
/
UF.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?php
/*
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC. All rights reserved. |
| |
| This work is published under the GNU AGPLv3 license with some |
| permitted exceptions and without any warranty. For full license |
| and copyright information, see https://civicrm.org/licensing |
+--------------------------------------------------------------------+
*/
/**
*
* @package CRM
* @copyright CiviCRM LLC https://civicrm.org/licensing
*/
/**
* This class generates form components for Site Url.
*/
class CRM_Admin_Form_Setting_UF extends CRM_Admin_Form_Setting {
protected $_uf = NULL;
/**
* Build the form object.
*/
public function buildQuickForm() {
$config = CRM_Core_Config::singleton();
$this->_uf = $config->userFramework;
$this->_settings['syncCMSEmail'] = CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME;
$this->assign('wpBasePageEnabled', FALSE);
$this->assign('userFrameworkUsersTableNameEnabled', FALSE);
$this->assign('viewsIntegration', FALSE);
$this->setTitle(
ts('Settings - %1 Integration', [1 => $this->_uf])
);
if ($config->userSystem->canSetBasePage()) {
$this->_settings['wpBasePage'] = CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME;
$this->assign('wpBasePageEnabled', TRUE);
}
if ($config->userSystem->hasUsersTable()) {
$this->_settings['userFrameworkUsersTableName'] = CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME;
$this->assign('userFrameworkUsersTableNameEnabled', TRUE);
}
$viewsIntegration = $config->userSystem->viewsIntegration();
if ($viewsIntegration) {
$this->assign('viewsIntegration', $viewsIntegration);
}
parent::buildQuickForm();
}
}