projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #14422 from civicrm/5.14
[civicrm-core.git]
/
Civi
/
API
/
Request.php
diff --git
a/Civi/API/Request.php
b/Civi/API/Request.php
index 63b0e60f4eb53f92cba28fe62182f999e51c2739..9a101002a50f6a2947d96001c525b8c0403dfaed 100644
(file)
--- a/
Civi/API/Request.php
+++ b/
Civi/API/Request.php
@@
-3,7
+3,7
@@
+--------------------------------------------------------------------+
| CiviCRM version 5 |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
| CiviCRM version 5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-201
8
|
+ | Copyright CiviCRM LLC (c) 2004-201
9
|
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
@@
-62,7
+62,7
@@
class Request {
$version = \CRM_Utils_Array::value('version', $params);
switch ($version) {
default:
$version = \CRM_Utils_Array::value('version', $params);
switch ($version) {
default:
- $apiRequest =
array()
;
+ $apiRequest =
[]
;
$apiRequest['id'] = self::$nextId++;
$apiRequest['version'] = (int) $version;
$apiRequest['params'] = $params;
$apiRequest['id'] = self::$nextId++;
$apiRequest['version'] = (int) $version;
$apiRequest['params'] = $params;
@@
-73,7
+73,7
@@
class Request {
return $apiRequest;
case 4:
return $apiRequest;
case 4:
- $callable =
array("Civi\\Api4\\$entity", $action)
;
+ $callable =
["Civi\\Api4\\$entity", $action]
;
if (!is_callable($callable)) {
throw new Exception\NotImplementedException("API ($entity, $action) does not exist (join the API team and implement it!)");
}
if (!is_callable($callable)) {
throw new Exception\NotImplementedException("API ($entity, $action) does not exist (join the API team and implement it!)");
}
@@
-115,4
+115,8
@@
class Request {
return strtolower(\CRM_Utils_String::munge($action));
}
return strtolower(\CRM_Utils_String::munge($action));
}
+ public static function getNextId() {
+ return self::$nextId++;
+ }
+
}
}