Documentation

PrototypeItem

Base class for items table.


Inheritance chain

Descendant for class Main\UserField\Internal\PrototypeItemDataManager.

abstract class Bitrix\Crm\Model\Dynamic\PrototypeItem extends Bitrix\Main\UserField\Internal\PrototypeItemDataManager

Table fields

Field Description Required
IDItem ID.
XML_IDItem external ID.
TITLEItem name.
CREATED_BYUser ID, who created item.Yes
UPDATED_BYUser ID, who updated item.
MOVED_BYUser ID, who changes item stage.
CREATED_TIMEItem creation time.Yes
UPDATED_TIMEItem update time.
MOVED_TIMEItem stage change time.
CATEGORY_IDItem pipeline ID. Default pipeline.Yes
OPENEDFlag "Available to everyone".
>STAGE_IDString ID for item stage. Pipeline first stage by default.
PREVIOUS_STAGE_IDString ID for previous item stage.
BEGINDATEStart date. Creation date by default.
CLOSEDATEEnd date. Creation date by default + 7 days.
COMPANY_IDCompany ID. More on bindings.
CONTACT_IDMain contact ID. More on bindings, as well as on multiple contacts.
OPPORTUNITYTotal.
IS_MANUAL_OPPORTUNITYFlag "Total amount calculation ". Total calculated automatically by default.
TAX_VALUESPA ID.
CURRENCY_IDCurrency ID.
OPPORTUNITY_ACCOUNTTotal for reports.
TAX_VALUE_ACCOUNTTax total for reports.
ACCOUNT_CURRENCY_IDCurrencies for reports.
MYCOMPANY_IDMy company ID.
SOURCE_IDSource ID.
SOURCE_DESCRIPTIONSource extra data.
WEBFORM_IDCRM form ID.

In addition: Separate column for each custom field. When field is multiple, this column stores set of values in serialized format and separate table stores set of multiple values. Learn more at custom field value storage.

Please, be advised, this is an abstract class. Specific classes are compiled for each smart process in runtime. Within this table here ID - is ID with association to a specific smart process; this association is defined in a specific class.

EntityObject class.

Class methods

MethodDescription Available from version
public static function getFactory(): ?\Bitrix\Crm\Service\Factory
Method returns factory service, associated to the smart process.
public static function prepareGetListParameters(
    array $parameters = []
): array
Method prepares parameters for passing in parent class getList. This method is called automatically in PrototypeItem::getList, you don't need to call it separately.
public static function getFullTextDataClass(): string
Method returns table class FQN for full-text search.
public static function getFullTextReferenceField(
    string $referenceName = 'FULL_TEXT'
): Reference
Returns object Bitrix\Main\ORM\Fields\Relations\Reference for linking with full-text search table.
public static function getDefaultCategoryId(): ?int
Returns default pipeline ID for a smart process.
public static function getDefaultStageId(): ?string
Returns default stage ID for a smart process.
public static function getDefaultCloseDate(): Date
Returns default closing date.
public static function disableUserFieldsCheck(): void
Disables custom field value check during the next write operation runtime.


© «Bitrix24», 2001-2024
Up