• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/entitypropertyvaluecollection.php
  • Класс: BitrixSaleEntityPropertyValueCollection
  • Вызов: EntityPropertyValueCollection::getOnValueDeletedEventName
static function getOnValueDeletedEventName(): string;
abstract protected static function getOnBeforeValueDeletedEventName(): string;
/**
 * @return string Property class name.
 */
abstract protected static function getPropertyClassName(): string;

/**
 * @return string BitrixSaleRegistry::ENTITY_SHIPMENT | BitrixSaleRegistry::ENTITY_ORDER
 */
abstract protected static function getEntityType(): string;

/**
 * @return string EntityPropertyValue inheritor class name
 */
abstract protected static function getPropertyValueClassName(): string;

/**
 * @param int $entityId
 * @return array
 */
protected static function getAllItemsFromDb(int $entityId): array
{
	return static::getList(
		[
			"filter" => [
				'=ENTITY_TYPE' => static::getEntityType(),
				'=ENTITY_ID' => $entityId
			],
			"select" => ['ID', 'ORDER_PROPS_ID']
		]
	)->fetchAll();
}