Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
Класс Product
+ Граф наследования:Product:

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

static getTabletClassName ()
 
static delete ($id)
 
- Открытые статические члены унаследованные от Entity
static getEntity ()
 
static getList (array $parameters)
 
static getRow (array $parameters)
 
static clearCache ()
 
static add (array $data)
 
static update ($id, array $data)
 
static setCacheItem ($id, array $row)
 
static getCacheItem ($id, bool $load=false)
 
static clearCacheItem ($id)
 
static getTabletFieldNames (int $fields=self::FIELDS_MAIN)
 
static getCachedFieldList ()
 
static getCallbackRestEvent ()
 
static clearSettings ()
 

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

static getDefaultCachedFieldList ()
 
static prepareForAdd (ORM\Data\AddResult $result, $id, array &$data)
 
static prepareForUpdate (ORM\Data\UpdateResult $result, $id, array &$data)
 
static runAddExternalActions ($id, array $data)
 
static runUpdateExternalActions ($id, array $data)
 
static runDeleteExternalActions ($id)
 
- Защищенные статические члены унаследованные от Entity
static deleteNoDemands ($id)
 
static normalize (array &$data)
 
static prepareFloatValue ($value)
 
static prepareIntValue ($value)
 
static prepareStringValue ($value)
 

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

const ACTION_CHANGE_PARENT_AVAILABLE = 'SKU_AVAILABLE'
 
const ACTION_CHANGE_PARENT_TYPE = 'PARENT_TYPE'
 
const ACTION_RECALCULATE_SETS = 'SETS'
 
const ACTION_SEND_NOTIFICATIONS = 'SUBSCRIPTION'
 

Дополнительные унаследованные члены

- Открытые члены унаследованные от Entity
 __construct ()
 
 fetch (Main\Text\Converter $converter=null)
 
- Открытые атрибуты унаследованные от Entity
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
 
- Защищенные члены унаследованные от Entity
 getTablet ()
 

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

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

Методы

◆ delete()

static delete ( $id)
static

Delete product item. Use instead of DataManager method.

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

Переопределяет метод предка Entity.

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

◆ getDefaultCachedFieldList()

static getDefaultCachedFieldList ( )
staticprotected

Returns product default fields list for caching.

Возвращает
array

Переопределяет метод предка Entity.

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

◆ getTabletClassName()

static getTabletClassName ( )
static

Returns product tablet name.

Возвращает
string

Переопределяет метод предка Entity.

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

◆ prepareForAdd()

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

Check and modify fields before add product. Need for product automation.

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

Переопределяет метод предка Entity.

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

◆ prepareForUpdate()

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

Check and modify fields before update product. Need for product automation.

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

Переопределяет метод предка Entity.

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

◆ runAddExternalActions()

static runAddExternalActions ( $id,
array $data )
staticprotected

Run core automation after add product.

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

Переопределяет метод предка Entity.

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

◆ runDeleteExternalActions()

static runDeleteExternalActions ( $id)
staticprotected

Run core automation after delete product.

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

Переопределяет метод предка Entity.

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

◆ runUpdateExternalActions()

static runUpdateExternalActions ( $id,
array $data )
staticprotected

Run core automation after update product.

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

Переопределяет метод предка Entity.

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

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

◆ ACTION_CHANGE_PARENT_AVAILABLE

const ACTION_CHANGE_PARENT_AVAILABLE = 'SKU_AVAILABLE'
protected

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

◆ ACTION_CHANGE_PARENT_TYPE

const ACTION_CHANGE_PARENT_TYPE = 'PARENT_TYPE'
protected

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

◆ ACTION_RECALCULATE_SETS

const ACTION_RECALCULATE_SETS = 'SETS'
protected

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

◆ ACTION_SEND_NOTIFICATIONS

const ACTION_SEND_NOTIFICATIONS = 'SUBSCRIPTION'
protected

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