Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
base.php
1<?php
3
5
6abstract class Base extends CopyImplementer
7{
15 abstract public function update($entityId, array $fields);
16
17 public function updateAttachedIdsInText(int $id, array $attachedIds, callable $callback): void
18 {
19 list($field, $text) = $this->getText($id);
20
21 $detailText = call_user_func_array($callback, [
22 $text,
23 $this->ufEntityObject,
24 $id,
25 $this->ufDiskFileField,
26 $attachedIds
27 ]);
28
29 $this->update($id, [$field => $detailText]);
30 }
31}
update($entityId, array $fields)
Definition base.php:319
updateAttachedIdsInText(int $id, array $attachedIds, callable $callback)
Definition base.php:17