- Модуль: tasks
- Путь к файлу: ~/bitrix/modules/tasks/lib/copy/implement/base.php
- Класс: BitrixTasksCopyImplementBase
- Вызов: Base::update
public function update($entityId, array $fields);
/**
* Updates identifiers who's added to text.
*
* @param int $id Id of the entity whose text will be updated.
* @param array $attachedIds
* @param callable $auxiliaryCallback
*/
public function updateAttachedIdsInText(int $id, array $attachedIds, callable $auxiliaryCallback): void
{
list($field, $text) = $this->getText($id);
$detailText = call_user_func_array($auxiliaryCallback, [
$text,
$this->ufEntityObject,
$id,
$this->ufDiskFileField,
$attachedIds
]);
$this->update($id, [$field => $detailText]);
}