From 4286193510864a5967cbf15bb70761ae8cca650d Mon Sep 17 00:00:00 2001 From: Leon Stringer Date: Wed, 11 Dec 2024 10:48:34 +0000 Subject: [PATCH] Add get_fieldset() Presumably this function is missing and wasn't deliberately omitted? Can this change be cherry-picked to the 4.4 and 4.5 docs or should these be changed in separate requests? --- docs/apis/core/dml/index.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/apis/core/dml/index.md b/docs/apis/core/dml/index.md index 87af8e6db..d83e3efb2 100644 --- a/docs/apis/core/dml/index.md +++ b/docs/apis/core/dml/index.md @@ -368,6 +368,18 @@ public function get_field_sql( ## Getting field values from multiple records +### get_fieldset + +Return values of the given field from a table record as an array where all the given conditions are met. + +```php +public function get_fieldset( + string $table, + string $return, + ?array $conditions = null +); +``` + ### get_fieldset_select Return values of the given field as an array where the given conditions are used in the WHERE clause.