Skip to content

Commit

Permalink
Add get_fieldset()
Browse files Browse the repository at this point in the history
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?
  • Loading branch information
leonstr authored Dec 11, 2024
1 parent a3589fc commit 4286193
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/apis/core/dml/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 4286193

Please sign in to comment.