1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс OrderHistory

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

static addField ($entityName, $orderId, $field, $oldValue=null, $value=null, $id=null, $entity=null, array $fields=array())
static addAction ($entityName, $orderId, $type, $id=null, $entity=null, array $fields=array(), $level=null)
static collectEntityFields ($entityName, $orderId, $id=null)
static deleteByOrderId ($id)
static addLog ($entityName, $orderId, $type, $id=null, $entity=null, array $fields=array(), $level=null)
static checkLogLevel ($level)
static checkActionLogLevel ($level)
static deleteOldAgent ($days, $hitLimit=null)
static getManagerLogItems ()

Поля данных

const SALE_ORDER_HISTORY_UPDATE = 'UPDATE'
const SALE_ORDER_HISTORY_RECORD_TYPE_ACTION = 'ACTION'
const SALE_ORDER_HISTORY_RECORD_TYPE_FIELD = 'FIELD'
const SALE_ORDER_HISTORY_RECORD_TYPE_DEBUG = 'DEBUG'
const FIELD_TYPE_NAME = 'NAME'
const FIELD_TYPE_TYPE = 'TYPE'
const SALE_ORDER_HISTORY_LOG_LEVEL_0 = 0
const SALE_ORDER_HISTORY_LOG_LEVEL_1 = 1
const SALE_ORDER_HISTORY_ACTION_LOG_LEVEL_0 = 0
const SALE_ORDER_HISTORY_ACTION_LOG_LEVEL_1 = 1

Защищенные члены

 __construct ()

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

static getPoolByEntity ($entity, $orderId)
static prepareDataForAdd ($entityName, $type, $entity=null, array $data=array())
static addRecord ($entityName, $orderId, $type, $id=null, $entity=null, array $data=array())
static addInternal ($fields)
static getOperationType ($entityName, $type)
static getList (array $parameters=array())
static deleteInternal ($primary)
static deleteOldInternal ($days, $limit=null)

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

static $pool = array()
static $poolFields = array()

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

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

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

◆ __construct()

__construct ( )
protected

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

Методы

◆ addAction()

addAction ( $entityName,
$orderId,
$type,
$id = null,
$entity = null,
array $fields = array(),
$level = null )
static
Аргументы
$entityName
$orderId
$type
null$id
null$entity
array$fields
null$level
Исключения
Main

ArgumentNullException

Исключения
Main

ArgumentOutOfRangeException

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

◆ addField()

addField ( $entityName,
$orderId,
$field,
$oldValue = null,
$value = null,
$id = null,
$entity = null,
array $fields = array() )
static
Аргументы
string$entityName
int$orderId
string$field
null | string$oldValue
null | string$value
int$id
$entity
array$fields

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

◆ addInternal()

addInternal ( $fields)
staticprotected
Аргументы
$fields
Возвращает
Main\Entity\AddResult
Исключения

Exception

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

◆ addLog()

addLog ( $entityName,
$orderId,
$type,
$id = null,
$entity = null,
array $fields = array(),
$level = null )
static
Аргументы
$entityName
$orderId
$type
null$id
null$entity
array$fields
null$level
Исключения
Main

ArgumentNullException

Исключения
Main

ArgumentOutOfRangeException

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

◆ addRecord()

addRecord ( $entityName,
$orderId,
$type,
$id = null,
$entity = null,
array $data = array() )
staticprotected
Аргументы
$entityName
$orderId
$type
null$id
null | Entity$entity
array$data

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

◆ checkActionLogLevel()

checkActionLogLevel ( $level)
static
Аргументы
$level
Возвращает
bool
Исключения
Main

ArgumentNullException

Исключения
Main

ArgumentOutOfRangeException

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

◆ checkLogLevel()

checkLogLevel ( $level)
static
Аргументы
$level
Возвращает
bool
Исключения
Main

ArgumentNullException

Исключения
Main

ArgumentOutOfRangeException

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

◆ collectEntityFields()

collectEntityFields ( $entityName,
$orderId,
$id = null )
static
Аргументы
$entityName
$orderId
null | int$id
Возвращает
bool

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

◆ deleteByOrderId()

deleteByOrderId ( $id)
static
Аргументы
$id
Возвращает
bool
Исключения
Main

ArgumentException

Исключения
Main

ObjectPropertyException

Исключения
Main

SystemException

Исключения

Exception

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

◆ deleteInternal()

deleteInternal ( $primary)
staticprotected
Аргументы
$primary
Возвращает
Main\Entity\DeleteResult
Исключения

Exception

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

◆ deleteOldAgent()

deleteOldAgent ( $days,
$hitLimit = null )
static

Delete old records on an agent

Аргументы
$days
null$hitLimit
Возвращает
string
Исключения
Main

ArgumentException

Исключения
Main

ObjectException

Исключения
Main

ObjectPropertyException

Исключения
Main

SystemException

Исключения

Exception

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

◆ deleteOldInternal()

deleteOldInternal ( $days,
$limit = null )
staticprotected
Аргументы
$days
null$limit
Возвращает
bool
Исключения
Main

ArgumentException

Исключения
Main

ObjectException

Исключения
Main

ObjectPropertyException

Исключения
Main

SystemException

Исключения

Exception

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

◆ getList()

getList ( array $parameters = array())
staticprotected
Аргументы
array$parameters
Возвращает
Main\DB\Result
Исключения
Main

ArgumentException

Исключения
Main

ObjectPropertyException

Исключения
Main

SystemException

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

◆ getManagerLogItems()

getManagerLogItems ( )
static
Возвращает
array

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

◆ getOperationType()

getOperationType ( $entityName,
$type )
staticprotected
Аргументы
$entityName
$type
Возвращает
bool

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

◆ getPoolByEntity()

getPoolByEntity ( $entity,
$orderId )
staticprotected
Аргументы
$entity
$orderId
Возвращает
bool|array

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

◆ prepareDataForAdd()

prepareDataForAdd ( $entityName,
$type,
$entity = null,
array $data = array() )
staticprotected
Аргументы
$entityName
$type
Entity$entity
array$data
Возвращает
array

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

Поля

◆ $pool

$pool = array()
staticprotected

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

◆ $poolFields

$poolFields = array()
staticprotected

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

◆ FIELD_TYPE_NAME

const FIELD_TYPE_NAME = 'NAME'

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

◆ FIELD_TYPE_TYPE

const FIELD_TYPE_TYPE = 'TYPE'

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

◆ SALE_ORDER_HISTORY_ACTION_LOG_LEVEL_0

const SALE_ORDER_HISTORY_ACTION_LOG_LEVEL_0 = 0

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

◆ SALE_ORDER_HISTORY_ACTION_LOG_LEVEL_1

const SALE_ORDER_HISTORY_ACTION_LOG_LEVEL_1 = 1

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

◆ SALE_ORDER_HISTORY_LOG_LEVEL_0

const SALE_ORDER_HISTORY_LOG_LEVEL_0 = 0

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

◆ SALE_ORDER_HISTORY_LOG_LEVEL_1

const SALE_ORDER_HISTORY_LOG_LEVEL_1 = 1

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

◆ SALE_ORDER_HISTORY_RECORD_TYPE_ACTION

const SALE_ORDER_HISTORY_RECORD_TYPE_ACTION = 'ACTION'

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

◆ SALE_ORDER_HISTORY_RECORD_TYPE_DEBUG

const SALE_ORDER_HISTORY_RECORD_TYPE_DEBUG = 'DEBUG'

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

◆ SALE_ORDER_HISTORY_RECORD_TYPE_FIELD

const SALE_ORDER_HISTORY_RECORD_TYPE_FIELD = 'FIELD'

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

◆ SALE_ORDER_HISTORY_UPDATE

const SALE_ORDER_HISTORY_UPDATE = 'UPDATE'

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


Объявления и описания членов класса находятся в файле: