method
public
Quantity::getCode()
Сигнатура
public getCode() : mixed
Возвращаемое значение
mixed
Как применяется в Quantity
Quantity::getCode() — метод класса \Bitrix\Sale\Delivery\ExtraServices\Quantity модуля «Интернет-магазин».
Метод объекта: сначала нужен экземпляр Quantity.
use Bitrix\Main\Loader;
use Bitrix\Sale\Delivery\ExtraServices\Quantity;
Loader::includeModule('sale');
/** @var Quantity $object */
$result = $object->getCode();
// $result: mixedДругие методы Quantity
canManagerEditValue()canUserEditValue()getAdminDefaultControl()getAdminParamsControl()getAdminParamsName()getClassTitle()getCost()getCostShipment()getDescription()getDisplayValue()getEditControl()getId()
getCode() есть и у других классов модуля «Интернет-магазин»: Automatic, AutomaticProfile, Base, Base, Base, ByConcreteProduct, ByDimensions, ByLocation.
Исходный файл: source/sale/lib/delivery/extra_services/quantity.php:217

