- Модуль: tasks
- Путь к файлу: ~/bitrix/modules/tasks/lib/item/field/scalar.php
- Класс: BitrixTasksItemFieldScalar
- Вызов: Scalar::setValue
public function setValue($value, $key, $item, array $parameters = array())
{
$value = $this->makeValueSafe($value, $key, $item, $parameters);
if($this->isCacheable())
{
$keepExisting = array_key_exists('KEEP_EXISTING_VALUE', $parameters) && $parameters['KEEP_EXISTING_VALUE'] === true;
if(!$item->containsKey($key) || !$keepExisting)
{
$item->offsetSetDirect($key, $value);
}
}
return $value;
}