Helper
Class Helper Collections of different useful static methods.
Table of Contents
Properties
- $arIBlockIDs : mixed
- Wraps Product Provider Class::GetProductData from module catalog.
Methods
- getBitrixCategoryPropsHtml() : string
- getBitrixStatuses() : array<string|int, mixed>
- getDefaultFeedIntervals() : mixed
- getDeliveryList() : array<string|int, mixed>
- getIblocksIds() : mixed
- getOrderPropsList() : array<string|int, mixed>
- getPersonTypesList() : array<string|int, mixed>
- getProductById() : mixed
- getPropertiesList() : array<string|int, mixed>
- getRequiredOrderProps() : array<string|int, mixed>
- getSelectHtml() : string
- makeAdditionalOrderProps() : array<string|int, mixed>
- makeSelectorFromPaySystems() : string
- notifyNewOrder() : mixed
- onAfterUpdateShipment() : mixed
Properties
$arIBlockIDs
Wraps Product Provider Class::GetProductData from module catalog.
public
static mixed
$arIBlockIDs
Tags
Methods
getBitrixCategoryPropsHtml()
public
static getBitrixCategoryPropsHtml(string $selectName, int $iblockId[, int $bitrixCategoryId = 0 ][, string $value = '' ]) : string
Parameters
- $selectName : string
-
Name of select.
- $iblockId : int
-
Iblock Id.
- $bitrixCategoryId : int = 0
-
Iblock section Id.
- $value : string = ''
-
Selected value.
Return values
string —Html element
getBitrixStatuses()
public
static getBitrixStatuses(mixed $siteId) : array<string|int, mixed>
Parameters
- $siteId : mixed
Return values
array<string|int, mixed> —Order's statuses & flags.
getDefaultFeedIntervals()
public
static getDefaultFeedIntervals() : mixed
getDeliveryList()
public
static getDeliveryList(string $siteId) : array<string|int, mixed>
Parameters
- $siteId : string
-
Site id.
Return values
array<string|int, mixed> —List of diliveries for given site.
getIblocksIds()
public
static getIblocksIds([mixed $withSku = false ]) : mixed
Parameters
- $withSku : mixed = false
getOrderPropsList()
public
static getOrderPropsList(int $personTypeId) : array<string|int, mixed>
Parameters
- $personTypeId : int
-
Person type Id.
Return values
array<string|int, mixed> —Orders properties.
getPersonTypesList()
public
static getPersonTypesList(string $siteId) : array<string|int, mixed>
Parameters
- $siteId : string
-
Site id.
Return values
array<string|int, mixed> —List of person types for given site.
getProductById()
public
static getProductById(mixed $productId, mixed $quantity, mixed $siteId) : mixed
Parameters
- $productId : mixed
- $quantity : mixed
- $siteId : mixed
getPropertiesList()
public
static getPropertiesList(int $iblockId[, int $sectionId = 0 ]) : array<string|int, mixed>
Parameters
- $iblockId : int
-
Iblock Id.
- $sectionId : int = 0
-
Section Id.
Return values
array<string|int, mixed> —Iblock properties list.
getRequiredOrderProps()
public
static getRequiredOrderProps() : array<string|int, mixed>
Return values
array<string|int, mixed> —List of properties wich required for order creation.
getSelectHtml()
public
static getSelectHtml(string $name, array<string|int, mixed> $data[, string $selected = "" ][, bool $bShowNotUse = true ]) : string
Parameters
- $name : string
-
Name of select.
- $data : array<string|int, mixed>
-
to use in select,
- $selected : string = ""
-
Selected value.
- $bShowNotUse : bool = true
-
Show or not empty value.
Return values
string —Html select element
makeAdditionalOrderProps()
public
static makeAdditionalOrderProps(array<string|int, mixed> $params) : array<string|int, mixed>
Parameters
- $params : array<string|int, mixed>
Return values
array<string|int, mixed> —Additional order properties.
makeSelectorFromPaySystems()
public
static makeSelectorFromPaySystems(string $selectName, string $psIdValue, int $personTypeId) : string
Parameters
- $selectName : string
-
Name of input element.
- $psIdValue : string
-
Selected value.
- $personTypeId : int
-
Person type Id.
Return values
string —html element
notifyNewOrder()
public
notifyNewOrder(mixed $newOrderId, mixed $siteId[, mixed $buyerEmail = "" ][, mixed $buyerFio = "" ]) : mixed
Parameters
- $newOrderId : mixed
- $siteId : mixed
- $buyerEmail : mixed = ""
- $buyerFio : mixed = ""
onAfterUpdateShipment()
public
static onAfterUpdateShipment(Event $event) : mixed
Parameters
- $event : Event