• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/item.php
  • Класс: BitrixTasksItem
  • Вызов: Item::offsetSetConfigurable
private function offsetSetConfigurable($offset, $value, array $parameters = array())
{
	if($this->isImmutable())
	{
		return; // todo: throw NotAllowedException?
	}

	// todo: pristine state here

	$map = $this->getMap();

	/** @var FieldScalar $field */
	$field = $map[$offset];
	if($field)
	{
		$parameters['VALUE_SOURCE'] = FieldScalar::VALUE_SOURCE_OUTSIDE;
		$field->setValue($value, $offset, $this, $parameters);

		$this->setFieldModified($offset);
		$this->onChange();
	}
	else
	{
		// set as-is, this field is beyond the map scope, but may be used by some external code
		$this->offsetSetDirect($offset, $value);
	}
}