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 #23814 from civicrm/5.51
[civicrm-core.git]
/
Civi
/
Api4
/
Query
/
SqlFunctionISNULL.php
diff --git
a/Civi/Api4/Query/SqlFunctionISNULL.php
b/Civi/Api4/Query/SqlFunctionISNULL.php
index cfec8d82d814d344b85577e5893f9d8ee145fda2..17d729d430d675fbf879207006086c343ba1e2be 100644
(file)
--- a/
Civi/Api4/Query/SqlFunctionISNULL.php
+++ b/
Civi/Api4/Query/SqlFunctionISNULL.php
@@
-18,6
+18,8
@@
class SqlFunctionISNULL extends SqlFunction {
protected static $category = self::CATEGORY_COMPARISON;
protected static $category = self::CATEGORY_COMPARISON;
+ protected static $dataType = 'Boolean';
+
protected static function params(): array {
return [
[
protected static function params(): array {
return [
[
@@
-34,17
+36,10
@@
class SqlFunctionISNULL extends SqlFunction {
}
/**
}
/**
- * Reformat result as boolean
- *
- * @see \Civi\Api4\Utils\FormattingUtil::formatOutputValues
- * @param string $value
- * @param string $dataType
- * @return string|array
+ * @return string
*/
*/
- public function formatOutputValue($value, &$dataType) {
- // Value is always TRUE or FALSE
- $dataType = 'Boolean';
- return $value;
+ public static function getDescription(): string {
+ return ts('TRUE if the value is NULL, otherwise FALSE.');
}
}
}
}