Manager
FinalYes
Class Manager
Table of Contents
Constants
- CACHE_ID = 'BITRIX_CASHBOX_LIST'
- CHECK_STATUS_AGENT = '\Bitrix\Sale\Cashbox\Manager::updateChecksStatus();'
- DEBUG_MODE = false
- LEVEL_TRACE_E_ERROR = \Bitrix\Sale\Cashbox\Errors\Error::LEVEL_TRACE
- LEVEL_TRACE_E_IGNORED = 0
- LEVEL_TRACE_E_WARNING = \Bitrix\Sale\Cashbox\Errors\Warning::LEVEL_TRACE
- TTL = 31536000
Methods
- add() : AddResult
- buildChecksQuery() : array<string|int, mixed>
- buildConcreteCheckQuery() : array<string|int, mixed>
- buildZReportQuery() : array<string|int, mixed>
- canPaySystemPrint() : bool
- chooseCashbox() : mixed
- deactivateCashbox() : UpdateResult
- delete() : DeleteResult
- getAvailableCashboxList() : array<string|int, mixed>
- getCashboxFromCache() : array<string|int, mixed>
- getConnectionLink() : string
- getList() : Result
- getListFromCache() : mixed
- getListWithRestrictions() : array<string|int, mixed>
- getObjectById() : Cashbox|ICheckable|null
- getRestHandlersList() : array<string|int, mixed>
- Returns a list of all the registered rest cashbox handlers Structure: handler code => handler data
- isCashboxChecksExist() : bool
- isEnabledPaySystemPrint() : bool
- isPaySystemCashbox() : bool
- isSupportedFFD105() : bool
- update() : UpdateResult
- updateChecksStatus() : string
- writeToLog() : mixed
Constants
CACHE_ID
public
mixed
CACHE_ID
= 'BITRIX_CASHBOX_LIST'
CHECK_STATUS_AGENT
public
mixed
CHECK_STATUS_AGENT
= '\Bitrix\Sale\Cashbox\Manager::updateChecksStatus();'
DEBUG_MODE
public
mixed
DEBUG_MODE
= false
LEVEL_TRACE_E_ERROR
public
mixed
LEVEL_TRACE_E_ERROR
= \Bitrix\Sale\Cashbox\Errors\Error::LEVEL_TRACE
LEVEL_TRACE_E_IGNORED
public
mixed
LEVEL_TRACE_E_IGNORED
= 0
LEVEL_TRACE_E_WARNING
public
mixed
LEVEL_TRACE_E_WARNING
= \Bitrix\Sale\Cashbox\Errors\Warning::LEVEL_TRACE
TTL
public
mixed
TTL
= 31536000
Methods
add()
public
static add(array<string|int, mixed> $data) : AddResult
Parameters
- $data : array<string|int, mixed>
Return values
AddResultbuildChecksQuery()
public
static buildChecksQuery(mixed $cashboxIds) : array<string|int, mixed>
Parameters
- $cashboxIds : mixed
Return values
array<string|int, mixed>buildConcreteCheckQuery()
public
static buildConcreteCheckQuery(mixed $cashboxId, Check $check) : array<string|int, mixed>
Parameters
- $cashboxId : mixed
- $check : Check
Return values
array<string|int, mixed>buildZReportQuery()
public
static buildZReportQuery(mixed $cashboxId, mixed $id) : array<string|int, mixed>
Parameters
- $cashboxId : mixed
- $id : mixed
Return values
array<string|int, mixed>canPaySystemPrint()
public
static canPaySystemPrint(Payment $payment) : bool
Parameters
- $payment : Payment
Return values
boolchooseCashbox()
public
static chooseCashbox(mixed $cashboxList) : mixed
Parameters
- $cashboxList : mixed
Tags
deactivateCashbox()
public
static deactivateCashbox(mixed $cashboxId) : UpdateResult
Parameters
- $cashboxId : mixed
Return values
UpdateResultdelete()
public
static delete(mixed $primary) : DeleteResult
Parameters
- $primary : mixed
Return values
DeleteResultgetAvailableCashboxList()
public
static getAvailableCashboxList(Check $check) : array<string|int, mixed>
Parameters
- $check : Check
Return values
array<string|int, mixed>getCashboxFromCache()
public
static getCashboxFromCache(mixed $cashboxId) : array<string|int, mixed>
Parameters
- $cashboxId : mixed
Return values
array<string|int, mixed>getConnectionLink()
public
static getConnectionLink() : string
Return values
stringgetList()
public
static getList([array<string|int, mixed> $parameters = [] ]) : Result
Parameters
- $parameters : array<string|int, mixed> = []
Tags
Return values
ResultgetListFromCache()
public
static getListFromCache() : mixed
getListWithRestrictions()
public
static getListWithRestrictions(CollectableEntity $entity) : array<string|int, mixed>
Parameters
- $entity : CollectableEntity
Return values
array<string|int, mixed>getObjectById()
public
static getObjectById(mixed $id) : Cashbox|ICheckable|null
Parameters
- $id : mixed
Return values
Cashbox|ICheckable|nullgetRestHandlersList()
Returns a list of all the registered rest cashbox handlers Structure: handler code => handler data
public
static getRestHandlersList() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>isCashboxChecksExist()
public
static isCashboxChecksExist(mixed $cashboxId) : bool
Parameters
- $cashboxId : mixed
Return values
boolisEnabledPaySystemPrint()
public
static isEnabledPaySystemPrint() : bool
Return values
boolisPaySystemCashbox()
public
static isPaySystemCashbox(string $cashboxClassName) : bool
Parameters
- $cashboxClassName : string
Return values
boolisSupportedFFD105()
public
static isSupportedFFD105() : bool
Return values
boolupdate()
public
static update(mixed $primary, array<string|int, mixed> $data) : UpdateResult
Parameters
- $primary : mixed
- $data : array<string|int, mixed>
Return values
UpdateResultupdateChecksStatus()
public
static updateChecksStatus() : string
Tags
Return values
stringwriteToLog()
public
static writeToLog(mixed $cashboxId, Error $error) : mixed
Use \Bitrix\Sale\Cashbox\Logger instead
Parameters
- $cashboxId : mixed
- $error : Error