2namespace Bitrix\Sale\Delivery\Restrictions;
4use Bitrix\Main\Application;
5use Bitrix\Sale\Delivery\Restrictions;
6use Bitrix\Main\Localization\Loc;
7use Bitrix\Sale\Internals\Entity;
9Loc::loadMessages(__FILE__);
20 return Loc::getMessage(
"SALE_DLVR_RSTR_BY_PUBLIC_MODE_NAME");
25 return Loc::getMessage(
"SALE_DLVR_RSTR_BY_PUBLIC_MODE_DESCRIPT");
28 public static function check($dummy,
array $restrictionParams, $deliveryId = 0)
30 $context = Application::getInstance()->getContext();
33 if (empty($restrictionParams) ||
$request->isAdminSection() || (defined(
"BX_PUBLIC_MODE") &&
BX_PUBLIC_MODE ==
true))
36 return $restrictionParams[
"PUBLIC_SHOW"] ==
'Y';
47 "PUBLIC_SHOW" =>
array(
50 'LABEL' => Loc::getMessage(
"SALE_DLVR_RSTR_BY_PUBLIC_MODE_SHOW")
if(!Loader::includeModule('catalog')) if(!AccessController::getCurrent() ->check(ActionDictionary::ACTION_PRICE_EDIT)) if(!check_bitrix_sessid()) $request
static check($dummy, array $restrictionParams, $deliveryId=0)
static getClassDescription()
static extractParams(Entity $shipment)
static getParamsStructure($entityId=0)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)