daddc7eb92a052e449207f8165ebbfd35977c64b
3 +--------------------------------------------------------------------+
5 +--------------------------------------------------------------------+
6 | Copyright CiviCRM LLC (c) 2004-2020 |
7 +--------------------------------------------------------------------+
8 | This file is a part of CiviCRM. |
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. |
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. |
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 +--------------------------------------------------------------------+
31 * @copyright CiviCRM LLC (c) 2004-2020
35 * Soap specific stuff goes here.
37 class CRM_Utils_System_Soap
extends CRM_Utils_System_Base
{
40 * UF container variables.
43 public static $uf = NULL;
44 public static $ufClass = NULL;
47 * Given a permission string, check for access requirements
50 * The permission to check.
53 * true if yes, else false
55 public function checkPermission($str) {
62 public function url($path = NULL, $query = NULL, $absolute = TRUE, $fragment = NULL) {
63 if (isset(self
::$ufClass)) {
64 $className = self
::$ufClass;
65 $url = $className::url($path, $query, $absolute, $fragment);
74 * FIXME: Can this override be removed in favor of the parent?
77 public function postURL($action) {
82 * Set the email address of the user.
85 * Handle to the user object.
87 public function setEmail(&$user) {
93 public function authenticate($name, $pass) {
94 if (isset(self
::$ufClass)) {
95 $className = self
::$ufClass;
96 $result =& $className::authenticate($name, $pass);
105 * Swap the current UF for soap.
107 public function swapUF() {
108 $config = CRM_Core_Config
::singleton();
110 self
::$uf = $config->userFramework
;
111 $config->userFramework
= 'Soap';
113 self
::$ufClass = $config->userFrameworkClass
;
114 $config->userFrameworkClass
= 'CRM_Utils_System_Soap';
118 * Get user login URL for hosting CMS (method declared in each CMS system class)
120 * @param string $destination
124 public function getLoginURL($destination = '') {
125 throw new Exception("Method not implemented: getLoginURL");
128 public function loadBootStrap($params = [], $loadUser = TRUE, $throwError = TRUE, $realPath = NULL) {
129 // It makes zero sense for this class to extend CRM_Utils_System_Base.
130 throw new \
RuntimeException("Not implemented");