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 #19093 from civicrm/5.32
[civicrm-core.git]
/
Civi
/
Api4
/
Query
/
SqlFunctionSUM.php
diff --git
a/Civi/Api4/Query/SqlFunctionSUM.php
b/Civi/Api4/Query/SqlFunctionSUM.php
index 36f4ebb3cc3c6e7c886944b60e8633ededdb8d2a..b6b74ae786b3b58cb001d2d4880eae3cb90a43a2 100644
(file)
--- a/
Civi/Api4/Query/SqlFunctionSUM.php
+++ b/
Civi/Api4/Query/SqlFunctionSUM.php
@@
-16,6
+16,8
@@
namespace Civi\Api4\Query;
*/
class SqlFunctionSUM extends SqlFunction {
*/
class SqlFunctionSUM extends SqlFunction {
+ protected static $category = self::CATEGORY_AGGREGATE;
+
protected static $params = [
[
'prefix' => ['', 'DISTINCT', 'ALL'],
protected static $params = [
[
'prefix' => ['', 'DISTINCT', 'ALL'],
@@
-24,4
+26,11
@@
class SqlFunctionSUM extends SqlFunction {
],
];
],
];
+ /**
+ * @return string
+ */
+ public static function getTitle(): string {
+ return ts('Sum');
+ }
+
}
}