Documentation

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

ParameterDescriptionVersion
$fetchDataModifierValid callback.

Exceptions

Examples



© «Bitrix24», 2001-2024