Skip to content

Commit 525680e

Browse files
authored
Merge pull request #1206 from leonstr/patch-14
Add get_fieldset()
2 parents 15d2f3e + f573891 commit 525680e

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)