Skip to content

Commit

Permalink
Merge pull request #1206 from leonstr/patch-14
Browse files Browse the repository at this point in the history
Add get_fieldset()
  • Loading branch information
andrewnicols authored Dec 14, 2024
2 parents 15d2f3e + f573891 commit 525680e
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 525680e

Please sign in to comment.