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 and andrewnicols committed Dec 14, 2024
1 parent a3589fc commit f573891
Show file tree
Hide file tree
Showing 5 changed files with 60 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
12 changes: 12 additions & 0 deletions versioned_docs/version-4.1/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
12 changes: 12 additions & 0 deletions versioned_docs/version-4.3/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
12 changes: 12 additions & 0 deletions versioned_docs/version-4.4/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
12 changes: 12 additions & 0 deletions versioned_docs/version-4.5/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 f573891

Please sign in to comment.