method
public
Устаревший
Base::getPrice()
Сигнатура
public getPrice() : float
Возвращаемое значение
float
Как применяется в Base
Base::getPrice() — метод класса \Bitrix\Sale\Delivery\ExtraServices\Base модуля «Интернет-магазин».
Метод объекта: сначала нужен экземпляр Base.
use Bitrix\Main\Loader;
use Bitrix\Sale\Delivery\ExtraServices\Base;
Loader::includeModule('sale');
/** @var Base $object */
$result = $object->getPrice();
// $result: floatДругие методы Base
canManagerEditValue()canUserEditValue()getAdminDefaultControl()getAdminParamsControl()getClassTitle()getCode()getCost()getCostShipment()getDescription()getDisplayValue()getEditControl()getId()
getPrice() есть и у других классов модуля «Интернет-магазин»: Basket, BasketBase, BasketItem, BasketItemBase, CalculationResult, Checkbox, CompatibilityHandler, Enum.
Исходный файл: source/sale/lib/delivery/extra_services/base.php:121

