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

Открытые члены

 __construct ($initParam, $currency="", $values=array(), array $additionalParams=array())
 
 getItems ()
 
 getItem ($id)
 
 getItemByCode ($code)
 
 getTotalCostShipment (Shipment $shipment=null)
 
 addItem ($params, $currency, $value=null, array $additionalParams=array())
 
 setValues (array $values=array())
 
 setOperationCurrency ($currency)
 
 createClone (\SplObjectStorage $cloneEntity)
 
 isClone ()
 
 getTotalCost ()
 

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

static getClassesList ()
 
static prepareParamsToSave ($params)
 
static getAdminParamsControl ($className, $name, array $params)
 
static getValuesForShipment ($shipmentId, $deliveryId)
 
static saveValuesForShipment ($shipmentId, $extraServices)
 
static getStoreIdForShipment ($shipmentId, $deliveryId)
 
static saveStoreIdForShipment ($shipmentId, $deliveryId, $storeId)
 
static getStoresFields ($deliveryId, $onlyActive=true)
 
static getStoresList ($deliveryId)
 
static deleteStores ($deliveryId)
 
static setStoresUnActive ($deliveryId)
 
static saveStores ($deliveryId, array $storesList)
 
static getExtraServicesList ($deliveryId, $stores=false)
 
static prepareData (array $servicesIds)
 

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

const RIGHTS_ADMIN_IDX = 0
 
const RIGHTS_MANAGER_IDX = 1
 
const RIGHTS_CLIENT_IDX = 2
 
const STORE_PICKUP_CODE = 'BITRIX_STORE_PICKUP'
 
const STORE_PICKUP_CLASS = '\Bitrix\Sale\Delivery\ExtraServices\Store'
 

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

static getStoresValueId ($deliveryId)
 

Защищенные данные

 $items = array()
 
 $isClone = false
 

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

static $classes = null
 
static $cachedFields = array()
 

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

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

Конструктор(ы)

◆ __construct()

__construct ( $initParam,
$currency = "",
$values = array(),
array $additionalParams = array() )

Manager constructor.

Аргументы
array | int$initParam
string$currency
array$values
array$additionalParams

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

Методы

◆ addItem()

addItem ( $params,
$currency,
$value = null,
array $additionalParams = array() )
Аргументы
array$params
string$currency
mixed$value
array$additionalParams
Возвращает
bool
Исключения
ArgumentNullException
SystemException

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

◆ createClone()

createClone ( \SplObjectStorage $cloneEntity)

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

◆ deleteStores()

static deleteStores ( $deliveryId)
static
Аргументы
int$deliveryId
Возвращает
Result
Исключения

Exception

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

◆ getAdminParamsControl()

static getAdminParamsControl ( $className,
$name,
array $params )
static
Аргументы
string$className
string$name
array$params
Возвращает
string Html for extra service administration
Исключения
ArgumentNullException
SystemException

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

◆ getClassesList()

static getClassesList ( )
static
Возвращает
array Classes list

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

◆ getExtraServicesList()

static getExtraServicesList ( $deliveryId,
$stores = false )
static
Аргументы
int$deliveryId
bool$stores
Возвращает
array
Исключения
SystemException

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

◆ getItem()

getItem ( $id)
Аргументы
int$id
Возвращает
Base|null

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

◆ getItemByCode()

getItemByCode ( $code)
Аргументы
$code
Возвращает
Base|null

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

◆ getItems()

getItems ( )
Возвращает
Base[]

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

◆ getStoreIdForShipment()

static getStoreIdForShipment ( $shipmentId,
$deliveryId )
static
Аргументы
int$shipmentId
int$deliveryId
Возвращает
int

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

◆ getStoresFields()

static getStoresFields ( $deliveryId,
$onlyActive = true )
static
Аргументы
int$deliveryId
bool$onlyActive
Возвращает
array

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

◆ getStoresList()

static getStoresList ( $deliveryId)
static
Аргументы
int$deliveryId
Возвращает
array

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

◆ getStoresValueId()

static getStoresValueId ( $deliveryId)
staticprotected
Аргументы
int$deliveryId
Возвращает
int

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

◆ getTotalCost()

getTotalCost ( )
Возвращает
float total cost

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

◆ getTotalCostShipment()

getTotalCostShipment ( Shipment $shipment = null)
Аргументы
Shipment | null$shipment
Возвращает
float

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

◆ getValuesForShipment()

static getValuesForShipment ( $shipmentId,
$deliveryId )
static
Аргументы
int$shipmentId
int$deliveryId
Возвращает
array

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

◆ isClone()

isClone ( )
Возвращает
bool

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

◆ prepareData()

static prepareData ( array $servicesIds)
static
Аргументы
array$servicesIds
Исключения
SystemException

Bitrix\Main\ArgumentException

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

◆ prepareParamsToSave()

static prepareParamsToSave ( $params)
static

Prepares fields for saving

Аргументы
$params
Возвращает
mixed

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

◆ saveStoreIdForShipment()

static saveStoreIdForShipment ( $shipmentId,
$deliveryId,
$storeId )
static
Аргументы
int$shipmentId
int$deliveryId
int$storeId
Возвращает
Result
Исключения
ArgumentNullException

Bitrix\Main\ArgumentException

Исключения

Exception

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

◆ saveStores()

static saveStores ( $deliveryId,
array $storesList )
static
Аргументы
int$deliveryId
array$storesList
Возвращает
Result
Исключения

Exception

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

◆ saveValuesForShipment()

static saveValuesForShipment ( $shipmentId,
$extraServices )
static
Аргументы
int$shipmentId
array$extraServices
Возвращает
Result
Исключения
ArgumentNullException

Bitrix\Main\ArgumentException

Исключения

Exception

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

◆ setOperationCurrency()

setOperationCurrency ( $currency)
Аргументы
string$currency

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

◆ setStoresUnActive()

static setStoresUnActive ( $deliveryId)
static
Аргументы
int$deliveryId
Возвращает
Result
Исключения

Exception

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

◆ setValues()

setValues ( array $values = array())
Аргументы
array$values

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

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

◆ $cachedFields

$cachedFields = array()
staticprotected

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

◆ $classes

$classes = null
staticprotected

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

◆ $isClone

$isClone = false
protected

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

◆ $items

$items = array()
protected

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

◆ RIGHTS_ADMIN_IDX

const RIGHTS_ADMIN_IDX = 0

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

◆ RIGHTS_CLIENT_IDX

const RIGHTS_CLIENT_IDX = 2

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

◆ RIGHTS_MANAGER_IDX

const RIGHTS_MANAGER_IDX = 1

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

◆ STORE_PICKUP_CLASS

const STORE_PICKUP_CLASS = '\Bitrix\Sale\Delivery\ExtraServices\Store'

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

◆ STORE_PICKUP_CODE

const STORE_PICKUP_CODE = 'BITRIX_STORE_PICKUP'

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