Skip to content

Commit f573891

Browse files
leonstrandrewnicols
authored andcommitted
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?
1 parent a3589fc commit f573891

File tree

5 files changed

+60
-0
lines changed

5 files changed

+60
-0
lines changed

docs/apis/core/dml/index.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,18 @@ public function get_field_sql(
368368

369369
## Getting field values from multiple records
370370

371+
### get_fieldset
372+
373+
Return values of the given field from a table record as an array where all the given conditions are met.
374+
375+
```php
376+
public function get_fieldset(
377+
string $table,
378+
string $return,
379+
?array $conditions = null
380+
);
381+
```
382+
371383
### get_fieldset_select
372384

373385
Return values of the given field as an array where the given conditions are used in the WHERE clause.

versioned_docs/version-4.1/apis/core/dml/index.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,18 @@ public function get_field_sql(
368368

369369
## Getting field values from multiple records
370370

371+
### get_fieldset
372+
373+
Return values of the given field from a table record as an array where all the given conditions are met.
374+
375+
```php
376+
public function get_fieldset(
377+
string $table,
378+
string $return,
379+
?array $conditions = null
380+
);
381+
```
382+
371383
### get_fieldset_select
372384

373385
Return values of the given field as an array where the given conditions are used in the WHERE clause.

versioned_docs/version-4.3/apis/core/dml/index.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,18 @@ public function get_field_sql(
368368

369369
## Getting field values from multiple records
370370

371+
### get_fieldset
372+
373+
Return values of the given field from a table record as an array where all the given conditions are met.
374+
375+
```php
376+
public function get_fieldset(
377+
string $table,
378+
string $return,
379+
?array $conditions = null
380+
);
381+
```
382+
371383
### get_fieldset_select
372384

373385
Return values of the given field as an array where the given conditions are used in the WHERE clause.

versioned_docs/version-4.4/apis/core/dml/index.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,18 @@ public function get_field_sql(
368368

369369
## Getting field values from multiple records
370370

371+
### get_fieldset
372+
373+
Return values of the given field from a table record as an array where all the given conditions are met.
374+
375+
```php
376+
public function get_fieldset(
377+
string $table,
378+
string $return,
379+
?array $conditions = null
380+
);
381+
```
382+
371383
### get_fieldset_select
372384

373385
Return values of the given field as an array where the given conditions are used in the WHERE clause.

versioned_docs/version-4.5/apis/core/dml/index.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,18 @@ public function get_field_sql(
368368

369369
## Getting field values from multiple records
370370

371+
### get_fieldset
372+
373+
Return values of the given field from a table record as an array where all the given conditions are met.
374+
375+
```php
376+
public function get_fieldset(
377+
string $table,
378+
string $return,
379+
?array $conditions = null
380+
);
381+
```
382+
371383
### get_fieldset_select
372384

373385
Return values of the given field as an array where the given conditions are used in the WHERE clause.

0 commit comments

Comments
 (0)