Метод identifierRefusalsOf
Сигнатура метода
private static function identifierRefusalsOf(array $fields, bool $isCreation): array
Возвращает:
array
Описание
The identifier a creation was given, checked before anything is written: the storage layer would store a shortened one instead of refusing it. An empty string is not an identifier but the absence of one, and it is admitted as such. A value that is not a string at all - an explicit `null` above all - is a shape the field does not have. An identifier of blanks alone is neither of those: it is refused rather than read as the absence of one, and it is not trimmed either. The name is trimmed and the identifier is not, because the name is the caption of a value and the identifier is its address: a caption is safe to tidy up, an address stored other than as it was given addresses another value. An identifier that is not blank is stored exactly as it came. `'0'` is refused for the same reason and not stored either ({@see self::ID_READ_AS_ABSENT_BY_STORAGE}): the storage layer reads it as no identifier at all and generates one instead, so the value would answer to an address the caller never asked for. Storing it as given is not something this domain can arrange - the reading is made by the legacy facade the write goes through.
Параметры
2| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$fields
|
array
|
—
|
—
|
$isCreation
|
bool
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
~/bitrix/modulescrm/lib/V2/Internal/Service/Dictionary/DictionaryValueService.php