Base::update

  1. Bitrix24 API (v. 23.675.0)
  2. tasks
  3. Base
  4. update
  • Модуль: 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]);
}

Добавить комментарий