1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс Entity
Граф наследования:Entity:
Price Product Vat Element CollectableEntity OrderBase Price PercentPrice BasketItemBase BasketPropertyItemBase EntityPropertyValue PayableItem Payment ReserveQuantity Shipment ShipmentItem ShipmentItemStore TradeBindingEntity Order

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

 __construct ()
 fetch (Main\Text\Converter $converter=null)

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

static getEntity ()
static getList (array $parameters)
static getRow (array $parameters)
static clearCache ()
static add (array $data)
static update ($id, array $data)
static delete ($id)
static setCacheItem ($id, array $row)
static getCacheItem ($id, bool $load=false)
static clearCacheItem ($id)
static getTabletClassName ()
static getTabletFieldNames (int $fields=self::FIELDS_MAIN)
static getCachedFieldList ()
static getCallbackRestEvent ()
static clearSettings ()

Поля данных

const PREFIX_OLD = 'OLD_'
const EVENT_ON_BUILD_CACHED_FIELD_LIST = 'OnBuildCachedFieldList'
const FIELDS_MAIN = 0x0001
const FIELDS_UF = 0x0002
const FIELDS_ALL = self::FIELDS_MAIN|self::FIELDS_UF

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

 getTablet ()

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

static prepareForAdd (ORM\Data\AddResult $result, $id, array &$data)
static prepareForUpdate (ORM\Data\UpdateResult $result, $id, array &$data)
static deleteNoDemands ($id)
static normalize (array &$data)
static runAddExternalActions ($id, array $data)
static runUpdateExternalActions ($id, array $data)
static runDeleteExternalActions ($id)
static getDefaultCachedFieldList ()
static prepareFloatValue ($value)
static prepareIntValue ($value)
static prepareStringValue ($value)

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

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

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

◆ __construct()

__construct ( )

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

Методы

◆ add()

add ( array $data)
static

Add entity item. Use instead of DataManager method.

Аргументы
array$data
Возвращает
ORM\Data\AddResult

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

◆ clearCache()

clearCache ( )
static

Clear all cache for entity.

Возвращает
void

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

◆ clearCacheItem()

clearCacheItem ( $id)
static

Clear item cache. Do not use without good reason.

Аргументы
int$id
Возвращает
void @noinspection PhpUnused

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

◆ clearSettings()

clearSettings ( )
static

Переопределяется в Price.

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

◆ delete()

delete ( $id)
static

Delete entity item. Use instead of DataManager method.

Аргументы
int$id
Возвращает
ORM\Data\DeleteResult

Переопределяется в Product.

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

◆ deleteNoDemands()

deleteNoDemands ( $id)
staticprotected

Delete entity item without entity events (tablet events only).

Аргументы
int$id
Возвращает
ORM\Data\DeleteResult
Исключения
Main

ObjectNotFoundException

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

◆ fetch()

fetch ( Main\Text\Converter $converter = null)

Entity fetch. Work with entity change cache.

Аргументы
Main\Text\Converter | null$converter
Возвращает
array|false

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

◆ getCachedFieldList()

getCachedFieldList ( )
static

Returns fields list in cache.

Возвращает
array

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

◆ getCacheItem()

getCacheItem ( $id,
bool $load = false )
static

Returns item cache.

Аргументы
int$id
bool$load
Возвращает
array|null

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

◆ getCallbackRestEvent()

getCallbackRestEvent ( )
static

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

◆ getDefaultCachedFieldList()

getDefaultCachedFieldList ( )
staticprotected

Returns entity default fields list for caching.

Возвращает
array

Переопределяется в Price, Product и Vat.

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

◆ getEntity()

getEntity ( )
static

Returns entity class.

Возвращает
Entity

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

◆ getList()

getList ( array $parameters)
static

Entity getList with change cache. Need for use before add/update/delete entity row.

Аргументы
array$parameters
Возвращает
Entity
Исключения
Main

ArgumentException

Исключения
Main

ObjectNotFoundException

Исключения
Main

ObjectPropertyException

Исключения
Main

SystemException

Переопределяется в BasketPropertyItem, BasketPropertyItemBase, EntityPropertyValue, Order, OrderBase, Payment, Shipment, ShipmentItem и ShipmentItemStore.

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

◆ getRow()

getRow ( array $parameters)
static

Entity getRow with change cache. Wrapper for entity getList.

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

ArgumentException

Исключения
Main

ObjectNotFoundException

Исключения
Main

ObjectPropertyException

Исключения
Main

SystemException

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

◆ getTablet()

getTablet ( )
protected

Returns entity table object.

Возвращает
ORM\Data\DataManager
Исключения
Main

ObjectNotFoundException

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

◆ getTabletClassName()

getTabletClassName ( )
static

Returns entity tablet name.

Возвращает
string

Переопределяется в Price, Product и Vat.

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

◆ getTabletFieldNames()

getTabletFieldNames ( int $fields = self::FIELDS_MAIN)
static

Returns list of tablet field names, include user fields.

Аргументы
int$fields
Возвращает
array

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

◆ normalize()

normalize ( array & $data)
staticprotected

Normalize data before prepare. Convert fields list into complex structure.

Аргументы
array&$data
Возвращает
void

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

◆ prepareFloatValue()

prepareFloatValue ( $value)
staticprotected

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

◆ prepareForAdd()

prepareForAdd ( ORM\Data\AddResult $result,
$id,
array & $data )
staticprotected

Check and modify fields before add entity item. Need for entity automation.

Аргументы
ORM\Data\AddResult$result
int | null$id
array&$data
Возвращает
void

Переопределяется в Price, Product и Vat.

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

◆ prepareForUpdate()

prepareForUpdate ( ORM\Data\UpdateResult $result,
$id,
array & $data )
staticprotected

Check and modify fields before update entity item. Need for entity automation.

Аргументы
ORM\Data\UpdateResult$result
int$id
array&$data
Возвращает
void

Переопределяется в Price, Product и Vat.

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

◆ prepareIntValue()

prepareIntValue ( $value)
staticprotected

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

◆ prepareStringValue()

prepareStringValue ( $value)
staticprotected

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

◆ runAddExternalActions()

runAddExternalActions ( $id,
array $data )
staticprotected

Run core automation after add entity item.

Аргументы
int$id
array$data
Возвращает
void

Переопределяется в Price и Product.

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

◆ runDeleteExternalActions()

runDeleteExternalActions ( $id)
staticprotected

Run core automation after delete entity item.

Аргументы
int$id
Возвращает
void

Переопределяется в Price и Product.

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

◆ runUpdateExternalActions()

runUpdateExternalActions ( $id,
array $data )
staticprotected

Run core automation after update entity item.

Аргументы
int$id
array$data
Возвращает
void

Переопределяется в Price и Product.

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

◆ setCacheItem()

setCacheItem ( $id,
array $row )
static

Fill item cache data. Do not use without good reason.

Аргументы
int$id
array$row
Возвращает
void

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

◆ update()

update ( $id,
array $data )
static

Update entity item. Use instead of DataManager method.

Аргументы
int$id
array$data
Возвращает
ORM\Data\UpdateResult

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

Поля

◆ EVENT_ON_BUILD_CACHED_FIELD_LIST

const EVENT_ON_BUILD_CACHED_FIELD_LIST = 'OnBuildCachedFieldList'

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

◆ FIELDS_ALL

const FIELDS_ALL = self::FIELDS_MAIN|self::FIELDS_UF

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

◆ FIELDS_MAIN

const FIELDS_MAIN = 0x0001

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

◆ FIELDS_UF

const FIELDS_UF = 0x0002

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

◆ PREFIX_OLD

const PREFIX_OLD = 'OLD_'

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


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