Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
|
Extract record vault preprocessor. More...
Public Member Functions | |
__construct (string $table, string $alias) | |
Constructor. | |
execute (array $records) | |
Extract a record embedded in the properties of another record out into a separate record. | |
Extract record vault preprocessor.
Extract record vault preprocessor. Typically used to separate out records when two tables have been joined together in a query.
mod_forum\local\vaults\preprocessors\extract_record::__construct | ( | string | $table, |
string | $alias ) |
Constructor.
string | $table | The table name where the records were loaded from |
string | $alias | The table alias used as the record property prefix |
mod_forum\local\vaults\preprocessors\extract_record::execute | ( | array | $records | ) |
Extract a record embedded in the properties of another record out into a separate record.
stdClass[] | $records | The list of records to process |
stdClass[] | The extracted records |