if (is_subclass_of($className, '\Civi\Api4\Query\SqlFunction')) {
$fns[] = [
'name' => $className::getName(),
+ 'title' => $className::getTitle(),
'params' => $className::getParams(),
'category' => $className::getCategory(),
];
return static::$category;
}
+ /**
+ * @return string
+ */
+ abstract public static function getTitle(): string;
+
}
],
];
+ /**
+ * @return string
+ */
+ public static function getTitle(): string {
+ return ts('Absolute');
+ }
+
}
],
];
+ /**
+ * @return string
+ */
+ public static function getTitle(): string {
+ return ts('Average');
+ }
+
}
],
];
+ /**
+ * @return string
+ */
+ public static function getTitle(): string {
+ return ts('Coalesce');
+ }
+
}
],
];
+ /**
+ * @return string
+ */
+ public static function getTitle(): string {
+ return ts('Combine');
+ }
+
}
],
];
+ /**
+ * @return string
+ */
+ public static function getTitle(): string {
+ return ts('Count');
+ }
+
}
protected static $category = self::CATEGORY_DATE;
+ /**
+ * @return string
+ */
+ public static function getTitle(): string {
+ return ts('Now');
+ }
+
}
],
];
+ /**
+ * @return string
+ */
+ public static function getTitle(): string {
+ return ts('Greatest');
+ }
+
}
],
];
+ /**
+ * @return string
+ */
+ public static function getTitle(): string {
+ return ts('List');
+ }
+
}
],
];
+ /**
+ * @return string
+ */
+ public static function getTitle(): string {
+ return ts('Is null');
+ }
+
}
],
];
+ /**
+ * @return string
+ */
+ public static function getTitle(): string {
+ return ts('Least');
+ }
+
}
],
];
+ /**
+ * @return string
+ */
+ public static function getTitle(): string {
+ return ts('Lowercase');
+ }
+
}
],
];
+ /**
+ * @return string
+ */
+ public static function getTitle(): string {
+ return ts('Max');
+ }
+
}
],
];
+ /**
+ * @return string
+ */
+ public static function getTitle(): string {
+ return ts('Min');
+ }
+
}
],
];
+ /**
+ * @return string
+ */
+ public static function getTitle(): string {
+ return ts('Null if');
+ }
+
}
],
];
+ /**
+ * @return string
+ */
+ public static function getTitle(): string {
+ return ts('Replace');
+ }
+
}
],
];
+ /**
+ * @return string
+ */
+ public static function getTitle(): string {
+ return ts('Round');
+ }
+
}
],
];
+ /**
+ * @return string
+ */
+ public static function getTitle(): string {
+ return ts('Sum');
+ }
+
}
],
];
+ /**
+ * @return string
+ */
+ public static function getTitle(): string {
+ return ts('Uppercase');
+ }
+
}