method public static

ByPersonType::isMyCode()

Класс: \Bitrix\Sale\Delivery\Restrictions\ByPersonType

Сигнатура

public static isMyCode(string $code) : bool

Параметры

$code string

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

bool

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

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

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

use Bitrix\Main\Loader;
use Bitrix\Sale\Delivery\Restrictions\ByPersonType;

Loader::includeModule('sale');

$code = '';
$result = ByPersonType::isMyCode($code);
// $result: bool

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

isMyCode() есть и у других классов модуля «Интернет-магазин»: Base, ByConcreteProduct, ByDimensions, ByLocation, ByMaxSize, ByPaySystem, ByPrice, ByProductCategory.

Исходный файл: source/sale/lib/delivery/restrictions/bypersontype.php:225

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