addFetchDataModifier
void public \Bitrix\Main\DB\Result::addFetchDataModifier( callable $fetchDataModifier );
Non-static method. Modifier accepts fetched array as an argument and modifies it by link or returns new array.
function (&$data) { $data['AGE'] -= 7; } function ($data) { $data['AGE'] -= 7; return $data; }
Parameters
Parameter | Description | Version |
---|---|---|
$fetchDataModifier | Valid callback. |
Exceptions
Examples
© «Bitrix24», 2001-2024