method public static

ByPaySystem::isAvailable()

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

Сигнатура

public static isAvailable() : bool

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

bool

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

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

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

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

Loader::includeModule('sale');

$result = ByPaySystem::isAvailable();
// $result: bool

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

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

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

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