Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
Класс OrderEdit

Открытые статические члены

static makeSelectHtml ($name, array $data, $selected="", $showNotUse=true, $attributes=array())
 
static makeSelectHtmlWithRestricted ($name, array $data, $selected="", $showNotUse=true, $attributes=array())
 
static makeSelectHtmlBodyWithRestricted ($data, $selected='', $showNotUse=true)
 
static getScripts (Order $order, $formId)
 
static getUserName ($userId, $siteId="")
 
static getProblemBlockHtml ($text, $orderId)
 
static getFastNavigationHtml (array $items, $formId='', $tabId='')
 
static getUserId ($order, $formData, $createUserIfNeed, Result &$result)
 
static fillOrderProperties (OrderBase $order, $formData, $files=[])
 
static isBasketItemNew ($basketCode)
 
static saveCoupons ($userId, $formData)
 
static saveProfileData ($profileId, Order $order, array $formData)
 
static fillBasketItem (BasketItem &$item, array $productData, Order $order, Basket $basket, $needDataUpdate=false)
 
static setBasketItemFields (BasketItem &$item, array $fields=array())
 
static getSiteName (&$siteId)
 
static restoreFieldsNames (array $data, $path="")
 
static initCouponsData ($newUserId, $orderId=0, $oldUserId=0)
 
static getCouponsData ()
 
static getOrderedDiscounts (Order $order, $needRecalculate=true)
 
static getCouponList (Order $order=null, $needRecalculate=true)
 
static getTotalPrices (Order $order, OrderBasket $orderBasket, $needRecalculate=true)
 
static setProductDetails ($productId, $userId, $siteId, array $params)
 
static getProductDetails ($productId, $userId, $siteId)
 
static getCompanyList ()
 

Открытые атрибуты

const BASKET_CODE_NEW = 'new'
 

Статические открытые данные

static $isTrustProductFormData = false
 
static $needUpdateNewProductPrice = false
 
static $isBuyerIdChanged = false
 
static $isRefreshData = false
 

Защищенные статические члены

static createUserFromForm (Order &$order, array $formData)
 

Статические защищенные данные

static $productsDetails = null
 

Подробное описание

См. определение в файле orderedit.php строка 50

Методы

◆ createUserFromForm()

static createUserFromForm ( Order & $order,
array $formData )
staticprotected
Аргументы
Order$order
array$formData
Возвращает
bool|int|string
Исключения
UserMessageException

См. определение в файле orderedit.php строка 359

◆ fillBasketItem()

static fillBasketItem ( BasketItem & $item,
array $productData,
Order $order,
Basket $basket,
$needDataUpdate = false )
static
Аргументы
BasketItem$item
array$productData
Order$order
Basket$basket
bool$needDataUpdate
Возвращает
\Bitrix\Sale\Result
Исключения
ArgumentNullException
SystemException

Bitrix\Main\ArgumentOutOfRangeException

Исключения

Bitrix\Main\NotSupportedException

Исключения

Bitrix\Main\ObjectNotFoundException

См. определение в файле orderedit.php строка 1496

◆ fillOrderProperties()

static fillOrderProperties ( OrderBase $order,
$formData,
$files = [] )
static

См. определение в файле orderedit.php строка 661

◆ getCompanyList()

static getCompanyList ( )
static
Возвращает
array
Исключения

Bitrix\Main\ArgumentException

См. определение в файле orderedit.php строка 1954

◆ getCouponList()

static getCouponList ( Order $order = null,
$needRecalculate = true )
static

См. определение в файле orderedit.php строка 1802

◆ getCouponsData()

static getCouponsData ( )
static

См. определение в файле orderedit.php строка 1745

◆ getFastNavigationHtml()

static getFastNavigationHtml ( array $items,
$formId = '',
$tabId = '' )
static
Аргументы
array$items.
string$formId
string$tabId
Возвращает
string HTML Navigation block.

См. определение в файле orderedit.php строка 291

◆ getOrderedDiscounts()

static getOrderedDiscounts ( Order $order,
$needRecalculate = true )
static

См. определение в файле orderedit.php строка 1791

◆ getProblemBlockHtml()

static getProblemBlockHtml ( $text,
$orderId )
static
Аргументы
string$textThe order problem description.
int$orderId
Возвращает
string HTML Problem block.

См. определение в файле orderedit.php строка 264

◆ getProductDetails()

static getProductDetails ( $productId,
$userId,
$siteId )
static

См. определение в файле orderedit.php строка 1929

◆ getScripts()

static getScripts ( Order $order,
$formId )
static
Аргументы
Order$order
$formId
Возвращает
string

См. определение в файле orderedit.php строка 159

◆ getSiteName()

static getSiteName ( & $siteId)
static

См. определение в файле orderedit.php строка 1666

◆ getTotalPrices()

static getTotalPrices ( Order $order,
OrderBasket $orderBasket,
$needRecalculate = true )
static

См. определение в файле orderedit.php строка 1870

◆ getUserId()

static getUserId ( $order,
$formData,
$createUserIfNeed,
Result & $result )
static

См. определение в файле orderedit.php строка 397

◆ getUserName()

static getUserName ( $userId,
$siteId = "" )
static
Аргументы
int$userId,.
string$siteId,.
Возвращает
string User name.

См. определение в файле orderedit.php строка 231

◆ initCouponsData()

static initCouponsData ( $newUserId,
$orderId = 0,
$oldUserId = 0 )
static
Аргументы
$newUserId
int$orderId
int | null$oldUserId

См. определение в файле orderedit.php строка 1713

◆ isBasketItemNew()

static isBasketItemNew ( $basketCode)
static

См. определение в файле orderedit.php строка 667

◆ makeSelectHtml()

static makeSelectHtml ( $name,
array $data,
$selected = "",
$showNotUse = true,
$attributes = array() )
static
Аргументы
string$name
array$data
string$selected
bool$showNotUse
array$attributes
Возвращает
string "<select>....</select>"
Исключения
ArgumentTypeException

См. определение в файле orderedit.php строка 69

◆ makeSelectHtmlBodyWithRestricted()

static makeSelectHtmlBodyWithRestricted ( $data,
$selected = '',
$showNotUse = true )
static
Аргументы
$data
string$selected
bool | true$showNotUse
Возвращает
string

См. определение в файле orderedit.php строка 131

◆ makeSelectHtmlWithRestricted()

static makeSelectHtmlWithRestricted ( $name,
array $data,
$selected = "",
$showNotUse = true,
$attributes = array() )
static
Аргументы
$name
array$data
string$selected
bool | true$showNotUse
array$attributes
Возвращает
string
Исключения
ArgumentTypeException

См. определение в файле orderedit.php строка 104

◆ restoreFieldsNames()

static restoreFieldsNames ( array $data,
$path = "" )
static

См. определение в файле orderedit.php строка 1691

◆ saveCoupons()

static saveCoupons ( $userId,
$formData )
static

См. определение в файле orderedit.php строка 672

◆ saveProfileData()

static saveProfileData ( $profileId,
Order $order,
array $formData )
static

См. определение в файле orderedit.php строка 697

◆ setBasketItemFields()

static setBasketItemFields ( BasketItem & $item,
array $fields = array() )
static

См. определение в файле orderedit.php строка 1661

◆ setProductDetails()

static setProductDetails ( $productId,
$userId,
$siteId,
array $params )
static
Аргументы
$productId
$userId
$siteId
array$params
Исключения
ArgumentNullException

См. определение в файле orderedit.php строка 1915

Данные класса

◆ $isBuyerIdChanged

$isBuyerIdChanged = false
static

См. определение в файле orderedit.php строка 55

◆ $isRefreshData

$isRefreshData = false
static

См. определение в файле orderedit.php строка 56

◆ $isTrustProductFormData

$isTrustProductFormData = false
static

См. определение в файле orderedit.php строка 53

◆ $needUpdateNewProductPrice

$needUpdateNewProductPrice = false
static

См. определение в файле orderedit.php строка 54

◆ $productsDetails

$productsDetails = null
staticprotected

См. определение в файле orderedit.php строка 52

◆ BASKET_CODE_NEW

const BASKET_CODE_NEW = 'new'

См. определение в файле orderedit.php строка 58