Bitrix API

Type extends Type implements JsonSerializable

Class Type

Tags
see
TypeTable

Table of Contents

Interfaces

JsonSerializable

Properties

$authContext  : Context
$customData  : Dictionary
$dataClass  : mixed
$entity  : Entity
$primary  : array<string|int, mixed>
$primaryAsString  : string
$state  : int

Methods

__call()  : mixed
Magic to handle getters, setters etc.
__clone()  : mixed
__construct()  : mixed
EntityObject constructor
__get()  : mixed
Magic read-only properties
__set()  : mixed
Magic read-only properties
addTo()  : mixed
collectValues()  : array<string|int, mixed>
Returns all objects values as an array
defineAuthContext()  : mixed
delete()  : Result
ActiveRecord delete.
fill()  : mixed
Fills all the values and relations of object
get()  : mixed
getCreatedBy()  : int|null
getCreatedTime()  : DateTime|null
getCustomSectionId()  : int|null
getEntityTypeId()  : int|null
getId()  : Collection|EntityObject|mixed
Fast popular alternative to __call().
getIsAutomationEnabled()  : bool|null
getIsBeginCloseDatesEnabled()  : bool|null
getIsBizProcEnabled()  : bool|null
getIsCategoriesEnabled()  : bool|null
getIsClientEnabled()  : bool|null
getIsCountersEnabled()  : bool|null
getIsCrmTrackingEnabled()  : bool|null
getIsDocumentsEnabled()  : bool|null
getIsLinkWithProductsEnabled()  : bool|null
getIsMycompanyEnabled()  : bool|null
getIsObserversEnabled()  : bool|null
getIsPaymentsEnabled()  : bool|null
getIsRecyclebinEnabled()  : bool|null
getIsSetOpenPermissions()  : bool|null
getIsSourceEnabled()  : bool|null
getIsStagesEnabled()  : bool|null
getIsUseInUserfieldEnabled()  : bool|null
getName()  : string|null
getTableName()  : string
getTitle()  : string|null
getUpdatedBy()  : int|null
getUpdatedTime()  : DateTime|null
has()  : mixed
isChanged()  : mixed
isFilled()  : mixed
isNew()  : bool
Returns true if this object has been created recently and is not saved yet
jsonSerialize()  : array<string|int, mixed>
offsetExists()  : bool
ArrayAccess interface implementation.
offsetGet()  : mixed|null
ArrayAccess interface implementation.
offsetSet()  : void
ArrayAccess interface implementation.
offsetUnset()  : void
ArrayAccess interface implementation.
remindActual()  : mixed
removeAll()  : mixed
removeFrom()  : mixed
require()  : mixed
reset()  : mixed
save()  : Result
ActiveRecord save.
set()  : mixed
setCreatedBy()  : Type
setCreatedTime()  : Type
setCustomSectionId()  : Type
setEntityTypeId()  : Type
setIsAutomationEnabled()  : Type
setIsBeginCloseDatesEnabled()  : Type
setIsBizProcEnabled()  : Type
setIsCategoriesEnabled()  : Type
setIsClientEnabled()  : Type
setIsCountersEnabled()  : Type
setIsCrmTrackingEnabled()  : Type
setIsDocumentsEnabled()  : Type
setIsLinkWithProductsEnabled()  : Type
setIsMycompanyEnabled()  : Type
setIsObserversEnabled()  : Type
setIsPaymentsEnabled()  : Type
setIsRecyclebinEnabled()  : Type
setIsSetOpenPermissions()  : Type
setIsSourceEnabled()  : Type
setIsStagesEnabled()  : Type
setName()  : Type
setTitle()  : Type
setUpdatedBy()  : Type
setUpdatedTime()  : Type
sysFillRelationCollection()  : Collection
sysGetEntity()  : Entity
sysGetPrimary()  : array<string|int, mixed>
Returns [primary => value] array.
sysGetPrimaryAsString()  : mixed
sysPostSave()  : mixed
sysSaveCurrentReferences()  : mixed
sysSerializePrimary()  : string
unset()  : mixed
wakeUp()  : static
Constructs existing object from pre-selected data, including references and relations.

Properties

$dataClass

public static mixed $dataClass = \Bitrix\Crm\Model\Dynamic\TypeTable::class

$primary read-only

public array<string|int, mixed> $primary

$primaryAsString read-only

public string $primaryAsString

Methods

__call()

Magic to handle getters, setters etc.

public __call(mixed $name, mixed $arguments) : mixed
Parameters
$name : mixed
$arguments : mixed
Tags
throws
ArgumentException
throws
SystemException

__construct()

EntityObject constructor

public final __construct([bool|array<string|int, mixed> $setDefaultValues = true ]) : mixed
Parameters
$setDefaultValues : bool|array<string|int, mixed> = true
Tags
throws
ArgumentException
throws
SystemException

__get()

Magic read-only properties

public __get(mixed $name) : mixed
Parameters
$name : mixed
Tags
throws
ArgumentException
throws
SystemException

__set()

Magic read-only properties

public __set(mixed $name, mixed $value) : mixed
Parameters
$name : mixed
$value : mixed
Tags
throws
SystemException

addTo()

public final addTo(mixed $fieldName, mixed $value) : mixed
Parameters
$fieldName : mixed
$value : mixed
Tags
throws
ArgumentException
throws
SystemException

collectValues()

Returns all objects values as an array

public final collectValues([int $valuesType = Values::ALL ][, int $fieldsMask = FieldTypeMask::ALL ][, bool $recursive = false ]) : array<string|int, mixed>
Parameters
$valuesType : int = Values::ALL
$fieldsMask : int = FieldTypeMask::ALL
$recursive : bool = false
Tags
throws
ArgumentException
Return values
array<string|int, mixed>

delete()

ActiveRecord delete.

public final delete() : Result
Tags
throws
ArgumentException
throws
SystemException
Return values
Result

fill()

Fills all the values and relations of object

public final fill([int|array<string|int, string> $fields = FieldTypeMask::ALL ]) : mixed
Parameters
$fields : int|array<string|int, string> = FieldTypeMask::ALL

Names of fields to fill

Tags
throws
ArgumentException
throws
SystemException

get()

public final get(mixed $fieldName) : mixed
Parameters
$fieldName : mixed
Tags
throws
ArgumentException
throws
SystemException

getCreatedBy()

public getCreatedBy() : int|null
Return values
int|null

getCustomSectionId()

public getCustomSectionId() : int|null
Return values
int|null

getEntityTypeId()

public getEntityTypeId() : int|null
Return values
int|null

getIsAutomationEnabled()

public getIsAutomationEnabled() : bool|null
Return values
bool|null

getIsBeginCloseDatesEnabled()

public getIsBeginCloseDatesEnabled() : bool|null
Return values
bool|null

getIsBizProcEnabled()

public getIsBizProcEnabled() : bool|null
Return values
bool|null

getIsCategoriesEnabled()

public getIsCategoriesEnabled() : bool|null
Return values
bool|null

getIsClientEnabled()

public getIsClientEnabled() : bool|null
Return values
bool|null

getIsCountersEnabled()

public getIsCountersEnabled() : bool|null
Return values
bool|null

getIsCrmTrackingEnabled()

public getIsCrmTrackingEnabled() : bool|null
Return values
bool|null

getIsDocumentsEnabled()

public getIsDocumentsEnabled() : bool|null
Return values
bool|null

getIsLinkWithProductsEnabled()

public getIsLinkWithProductsEnabled() : bool|null
Return values
bool|null

getIsMycompanyEnabled()

public getIsMycompanyEnabled() : bool|null
Return values
bool|null

getIsObserversEnabled()

public getIsObserversEnabled() : bool|null
Return values
bool|null

getIsPaymentsEnabled()

public getIsPaymentsEnabled() : bool|null
Return values
bool|null

getIsRecyclebinEnabled()

public getIsRecyclebinEnabled() : bool|null
Return values
bool|null

getIsSetOpenPermissions()

public getIsSetOpenPermissions() : bool|null
Return values
bool|null

getIsSourceEnabled()

public getIsSourceEnabled() : bool|null
Return values
bool|null

getIsStagesEnabled()

public getIsStagesEnabled() : bool|null
Return values
bool|null

getIsUseInUserfieldEnabled()

public getIsUseInUserfieldEnabled() : bool|null
Return values
bool|null

getName()

public getName() : string|null
Return values
string|null

getTableName()

public getTableName() : string
Return values
string

getTitle()

public getTitle() : string|null
Return values
string|null

getUpdatedBy()

public getUpdatedBy() : int|null
Return values
int|null

has()

public final has(mixed $fieldName) : mixed
Parameters
$fieldName : mixed
Tags
throws
ArgumentException
throws
SystemException

isChanged()

public final isChanged(mixed $fieldName) : mixed
Parameters
$fieldName : mixed
Tags
throws
ArgumentException
throws
SystemException

isFilled()

public final isFilled(mixed $fieldName) : mixed
Parameters
$fieldName : mixed
Tags
throws
ArgumentException
throws
SystemException

isNew()

Returns true if this object has been created recently and is not saved yet

public isNew() : bool
Return values
bool

jsonSerialize()

public jsonSerialize([bool|null $allData = true ]) : array<string|int, mixed>
Parameters
$allData : bool|null = true
Return values
array<string|int, mixed>

offsetExists()

ArrayAccess interface implementation.

public offsetExists(mixed $offset) : bool
Parameters
$offset : mixed
Tags
throws
ArgumentException
throws
SystemException
Return values
bool

offsetGet()

ArrayAccess interface implementation.

public offsetGet(mixed $offset) : mixed|null
Parameters
$offset : mixed
Tags
throws
ArgumentException
throws
SystemException
Attributes
#[ReturnTypeWillChange]
Return values
mixed|null

offsetSet()

ArrayAccess interface implementation.

public offsetSet(mixed $offset, mixed $value) : void
Parameters
$offset : mixed
$value : mixed
Tags
throws
ArgumentException
throws
SystemException

offsetUnset()

ArrayAccess interface implementation.

public offsetUnset(mixed $offset) : void
Parameters
$offset : mixed

remindActual()

public final remindActual(mixed $fieldName) : mixed
Parameters
$fieldName : mixed
Tags
throws
ArgumentException
throws
SystemException

removeAll()

public final removeAll(mixed $fieldName) : mixed
Parameters
$fieldName : mixed
Tags
throws
ArgumentException
throws
SystemException

removeFrom()

public final removeFrom(mixed $fieldName, mixed $value) : mixed
Parameters
$fieldName : mixed
$value : mixed
Tags
throws
ArgumentException
throws
SystemException

require()

public final require(mixed $fieldName) : mixed
Parameters
$fieldName : mixed
Tags
throws
ArgumentException
throws
SystemException

reset()

public final reset(mixed $fieldName) : mixed
Parameters
$fieldName : mixed
Tags
throws
ArgumentException
throws
SystemException

save()

ActiveRecord save.

public final save() : Result
Tags
throws
ArgumentException
throws
SystemException
throws
Exception
Return values
Result

set()

public final set(mixed $fieldName, mixed $value) : mixed
Parameters
$fieldName : mixed
$value : mixed
Tags
throws
ArgumentException
throws
SystemException

setCreatedBy()

public setCreatedBy(int $createdById) : Type
Parameters
$createdById : int
Return values
Type

setCustomSectionId()

public setCustomSectionId(int|null $customSectionId) : Type
Parameters
$customSectionId : int|null
Return values
Type

setEntityTypeId()

public setEntityTypeId(int $entityTypeId) : Type
Parameters
$entityTypeId : int
Return values
Type

setIsAutomationEnabled()

public setIsAutomationEnabled(bool $isAutomationEnabled) : Type
Parameters
$isAutomationEnabled : bool
Return values
Type

setIsBeginCloseDatesEnabled()

public setIsBeginCloseDatesEnabled(bool $isBeginCloseDatesEnabled) : Type
Parameters
$isBeginCloseDatesEnabled : bool
Return values
Type

setIsBizProcEnabled()

public setIsBizProcEnabled(bool $isBizProcEnabled) : Type
Parameters
$isBizProcEnabled : bool
Return values
Type

setIsCategoriesEnabled()

public setIsCategoriesEnabled(bool $isCategoriesEnabled) : Type
Parameters
$isCategoriesEnabled : bool
Return values
Type

setIsClientEnabled()

public setIsClientEnabled(bool $isClientEnabled) : Type
Parameters
$isClientEnabled : bool
Return values
Type

setIsCountersEnabled()

public setIsCountersEnabled(bool $isCountersEnabled) : Type
Parameters
$isCountersEnabled : bool
Return values
Type

setIsCrmTrackingEnabled()

public setIsCrmTrackingEnabled(bool $isCrmTrackingEnabled) : Type
Parameters
$isCrmTrackingEnabled : bool
Return values
Type

setIsDocumentsEnabled()

public setIsDocumentsEnabled(bool $isDocumentsEnabled) : Type
Parameters
$isDocumentsEnabled : bool
Return values
Type

setIsLinkWithProductsEnabled()

public setIsLinkWithProductsEnabled(bool $isLinkWithProductsEnabled) : Type
Parameters
$isLinkWithProductsEnabled : bool
Return values
Type

setIsMycompanyEnabled()

public setIsMycompanyEnabled(bool $isMycompanyEnabled) : Type
Parameters
$isMycompanyEnabled : bool
Return values
Type

setIsObserversEnabled()

public setIsObserversEnabled(bool $isObserversEnabled) : Type
Parameters
$isObserversEnabled : bool
Return values
Type

setIsPaymentsEnabled()

public setIsPaymentsEnabled(bool $isPaymentsEnabled) : Type
Parameters
$isPaymentsEnabled : bool
Return values
Type

setIsRecyclebinEnabled()

public setIsRecyclebinEnabled(bool $isRecyclebinEnabled) : Type
Parameters
$isRecyclebinEnabled : bool
Return values
Type

setIsSetOpenPermissions()

public setIsSetOpenPermissions(bool $isSetOpenPermissions) : Type
Parameters
$isSetOpenPermissions : bool
Return values
Type

setIsSourceEnabled()

public setIsSourceEnabled(bool $isSourceEnabled) : Type
Parameters
$isSourceEnabled : bool
Return values
Type

setIsStagesEnabled()

public setIsStagesEnabled(bool $isStagesEnabled) : Type
Parameters
$isStagesEnabled : bool
Return values
Type

setName()

public setName(string $name) : Type
Parameters
$name : string
Return values
Type

setTitle()

public setTitle(string $title) : Type
Parameters
$title : string
Return values
Type

setUpdatedBy()

public setUpdatedBy(int $createdById) : Type
Parameters
$createdById : int
Return values
Type

sysGetEntity()

public sysGetEntity() : Entity
Tags
throws
ArgumentException
throws
SystemException
Return values
Entity

sysGetPrimary()

Returns [primary => value] array.

public sysGetPrimary() : array<string|int, mixed>
Tags
throws
ArgumentException
throws
SystemException
Return values
array<string|int, mixed>

sysGetPrimaryAsString()

public sysGetPrimaryAsString() : mixed

sysSaveCurrentReferences()

public sysSaveCurrentReferences() : mixed

sysSerializePrimary()

public static sysSerializePrimary(array<string|int, mixed> $primary, Entity $entity) : string
Parameters
$primary : array<string|int, mixed>
$entity : Entity
Tags
throws
ArgumentException
Return values
string

unset()

public final unset(mixed $fieldName) : mixed
Parameters
$fieldName : mixed
Tags
throws
ArgumentException
throws
SystemException

wakeUp()

Constructs existing object from pre-selected data, including references and relations.

public final static wakeUp(mixed $row) : static
Parameters
$row : mixed

Array of [field => value] or single scalar primary value.

Tags
throws
ArgumentException
throws
SystemException
Return values
static

        
On this page

Search results