Enriches a dataset record's data with required fields - if needed, meaning only if any requested fields are missing yet.


Syntax

requireDatasetRecord($datasetLabel, $fields, $primKeyValue, $data = null, $params = null) ?array


Parameter

@param $datasetLabel string Dataset-Label of record

@param $fields array Numerical array of record's field that are required to be contained in $data.

@param $primKeyValue string Record's primary key value

@param $data array Optional already existing record's data. This array is always enriched. No keys are deleted from this array!

@param $params array Optional parameters that will be simply propagated into the actual data-get(list) call



Return

Returns the enriched $data record.


Examples

Yet to come...

...