From f5738916859989f817af3d85b0e0ba0e234423f9 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 ++++++++++++ versioned_docs/version-4.1/apis/core/dml/index.md | 12 ++++++++++++ versioned_docs/version-4.3/apis/core/dml/index.md | 12 ++++++++++++ versioned_docs/version-4.4/apis/core/dml/index.md | 12 ++++++++++++ versioned_docs/version-4.5/apis/core/dml/index.md | 12 ++++++++++++ 5 files changed, 60 insertions(+) diff --git a/docs/apis/core/dml/index.md b/docs/apis/core/dml/index.md index 87af8e6dba..d83e3efb29 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. diff --git a/versioned_docs/version-4.1/apis/core/dml/index.md b/versioned_docs/version-4.1/apis/core/dml/index.md index c504bb394f..ee36872c32 100644 --- a/versioned_docs/version-4.1/apis/core/dml/index.md +++ b/versioned_docs/version-4.1/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. diff --git a/versioned_docs/version-4.3/apis/core/dml/index.md b/versioned_docs/version-4.3/apis/core/dml/index.md index c504bb394f..ee36872c32 100644 --- a/versioned_docs/version-4.3/apis/core/dml/index.md +++ b/versioned_docs/version-4.3/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. diff --git a/versioned_docs/version-4.4/apis/core/dml/index.md b/versioned_docs/version-4.4/apis/core/dml/index.md index 6b214f356a..3eda70b34e 100644 --- a/versioned_docs/version-4.4/apis/core/dml/index.md +++ b/versioned_docs/version-4.4/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. diff --git a/versioned_docs/version-4.5/apis/core/dml/index.md b/versioned_docs/version-4.5/apis/core/dml/index.md index 3a571dee54..5a48f866a6 100644 --- a/versioned_docs/version-4.5/apis/core/dml/index.md +++ b/versioned_docs/version-4.5/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.