method public static

BusinessValue::get()

Класс: \Bitrix\Sale\BusinessValue

Сигнатура

public static get(string $codeKey[, string|null $consumerKey = null ][, IBusinessValueProvider|string|int|null $personTypeId = null ][, mixed $providerInstance = null ]) : mixed

Описание

Получает бизнес-значение.

Параметры

$codeKey string
$consumerKey string|null = null
$personTypeId IBusinessValueProvider|string|int|null = null
$providerInstance mixed = null

Возвращаемое значение

mixed

Как применяется в BusinessValue

BusinessValue::get() — метод класса \Bitrix\Sale\BusinessValue модуля «Интернет-магазин».

Статический метод — вызывается через имя класса BusinessValue, без создания объекта.

use Bitrix\Main\Loader;
use Bitrix\Sale\BusinessValue;

Loader::includeModule('sale');

$codeKey = '';
$result = BusinessValue::get($codeKey);
// $result: mixed

Другие методы BusinessValue

get() есть и у других классов модуля «Интернет-магазин»: ActionEntity, Collection, DiscountCouponsManager, DiscountCouponsManagerBase, EventsPool, ExtraServicesService, Fields, ItemsPool.

Исходный файл: source/sale/lib/businessvalue.php:46

Что будем искать? Например,Продвижение