Type extends Type implements Containable uses ModelTrait
Class Type
Tags
Table of Contents
Interfaces
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
- createItem() : Item
- createStage() : Stage
- defineAuthContext() : mixed
- delete() : Result
- ActiveRecord delete.
- fill() : mixed
- Fills all the values and relations of object
- get() : mixed
- getAccessCodesForAddItems() : array<string|int, mixed>
- getAccessCodesForModify() : array<string|int, mixed>
- getAccessCodesForView() : array<string|int, mixed>
- getFailStages() : EO_Stage_Collection
- getFinalStages() : EO_Stage_Collection
- getFirstStage() : Stage|null
- getId() : Collection|EntityObject|mixed
- Fast popular alternative to __call().
- getImage() : string
- getItem() : Item|null
- getItems() : Collection
- getItemsCount() : int
- getItemUfNameFieldName() : string
- getItemUserFieldsEntityId() : string
- getName() : string
- getPermissionEntity() : string
- getPermissions() : array<string|int, mixed>
- getSettings() : array<string|int, mixed>
- getStage() : Stage|null
- getStages() : EO_Stage_Collection
- Stages should be sorted by sort, but in the end always goes success stages and fail stages.
- getSuccessStage() : Stage|null
- getTableName() : string
- getTitle() : string
- getUserFieldCollection() : UserFieldCollection
- has() : mixed
- isChanged() : mixed
- isFilled() : 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
- resortStages() : Type
- Resort stages in actual order (if sort of some stages had been updated)
- save() : Result
- ActiveRecord save.
- set() : mixed
- setName() : void
- setTitle() : void
- 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
$authContext
public
Context
$authContext
For UF values validation
$customData read-only
public
Dictionary
$customData
$dataClass
public
static mixed
$dataClass
= \Bitrix\Rpa\Model\TypeTable::class
$entity read-only
public
Entity
$entity
$primary read-only
public
array<string|int, mixed>
$primary
$primaryAsString read-only
public
string
$primaryAsString
$state read-only
public
int
$state
@see State
Methods
__call()
Magic to handle getters, setters etc.
public
__call(mixed $name, mixed $arguments) : mixed
Parameters
- $name : mixed
- $arguments : mixed
Tags
__clone()
public
__clone() : mixed
__construct()
EntityObject constructor
public
final __construct([bool|array<string|int, mixed> $setDefaultValues = true ]) : mixed
Parameters
- $setDefaultValues : bool|array<string|int, mixed> = true
Tags
__get()
Magic read-only properties
public
__get(mixed $name) : mixed
Parameters
- $name : mixed
Tags
__set()
Magic read-only properties
public
__set(mixed $name, mixed $value) : mixed
Parameters
- $name : mixed
- $value : mixed
Tags
addTo()
public
final addTo(mixed $fieldName, mixed $value) : mixed
Parameters
- $fieldName : mixed
- $value : mixed
Tags
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
Return values
array<string|int, mixed>createItem()
public
createItem() : Item
Return values
ItemcreateStage()
public
createStage() : Stage
Return values
StagedefineAuthContext()
public
final defineAuthContext(Context $authContext) : mixed
Parameters
- $authContext : Context
delete()
ActiveRecord delete.
public
final delete() : Result
Tags
Return values
Resultfill()
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
get()
public
final get(mixed $fieldName) : mixed
Parameters
- $fieldName : mixed
Tags
getAccessCodesForAddItems()
public
getAccessCodesForAddItems() : array<string|int, mixed>
Return values
array<string|int, mixed>getAccessCodesForModify()
public
getAccessCodesForModify() : array<string|int, mixed>
Return values
array<string|int, mixed>getAccessCodesForView()
public
getAccessCodesForView() : array<string|int, mixed>
Return values
array<string|int, mixed>getFailStages()
public
getFailStages() : EO_Stage_Collection
Return values
EO_Stage_CollectiongetFinalStages()
public
getFinalStages() : EO_Stage_Collection
Return values
EO_Stage_CollectiongetFirstStage()
public
getFirstStage() : Stage|null
Return values
Stage|nullgetId()
Fast popular alternative to __call().
public
getId() : Collection|EntityObject|mixed
Return values
Collection|EntityObject|mixedgetImage()
public
getImage() : string
Return values
stringgetItem()
public
getItem(int $itemId) : Item|null
Parameters
- $itemId : int
Return values
Item|nullgetItems()
public
getItems([array<string|int, mixed> $parameters = [] ]) : Collection
Parameters
- $parameters : array<string|int, mixed> = []
Return values
CollectiongetItemsCount()
public
getItemsCount([array<string|int, mixed> $filter = [] ]) : int
Parameters
- $filter : array<string|int, mixed> = []
Return values
intgetItemUfNameFieldName()
public
getItemUfNameFieldName() : string
Return values
stringgetItemUserFieldsEntityId()
public
getItemUserFieldsEntityId() : string
Return values
stringgetName()
public
getName() : string
Return values
stringgetPermissionEntity()
public
getPermissionEntity() : string
Return values
stringgetPermissions()
public
getPermissions([bool $isFromCache = true ]) : array<string|int, mixed>
Parameters
- $isFromCache : bool = true
Return values
array<string|int, mixed>getSettings()
public
getSettings() : array<string|int, mixed>
Return values
array<string|int, mixed>getStage()
public
getStage(int $stageId) : Stage|null
Parameters
- $stageId : int
Return values
Stage|nullgetStages()
Stages should be sorted by sort, but in the end always goes success stages and fail stages.
public
getStages([PageNavigation|null $pageNavigation = null ]) : EO_Stage_Collection
Parameters
- $pageNavigation : PageNavigation|null = null
Return values
EO_Stage_CollectiongetSuccessStage()
public
getSuccessStage() : Stage|null
Return values
Stage|nullgetTableName()
public
getTableName() : string
Return values
stringgetTitle()
public
getTitle() : string
Return values
stringgetUserFieldCollection()
public
getUserFieldCollection() : UserFieldCollection
Return values
UserFieldCollectionhas()
public
final has(mixed $fieldName) : mixed
Parameters
- $fieldName : mixed
Tags
isChanged()
public
final isChanged(mixed $fieldName) : mixed
Parameters
- $fieldName : mixed
Tags
isFilled()
public
final isFilled(mixed $fieldName) : mixed
Parameters
- $fieldName : mixed
Tags
offsetExists()
ArrayAccess interface implementation.
public
offsetExists(mixed $offset) : bool
Parameters
- $offset : mixed
Tags
Return values
booloffsetGet()
ArrayAccess interface implementation.
public
offsetGet(mixed $offset) : mixed|null
Parameters
- $offset : mixed
Tags
Attributes
- #[ReturnTypeWillChange]
Return values
mixed|nulloffsetSet()
ArrayAccess interface implementation.
public
offsetSet(mixed $offset, mixed $value) : void
Parameters
- $offset : mixed
- $value : mixed
Tags
offsetUnset()
ArrayAccess interface implementation.
public
offsetUnset(mixed $offset) : void
Parameters
- $offset : mixed
remindActual()
public
final remindActual(mixed $fieldName) : mixed
Parameters
- $fieldName : mixed
Tags
removeAll()
public
final removeAll(mixed $fieldName) : mixed
Parameters
- $fieldName : mixed
Tags
removeFrom()
public
final removeFrom(mixed $fieldName, mixed $value) : mixed
Parameters
- $fieldName : mixed
- $value : mixed
Tags
require()
public
final require(mixed $fieldName) : mixed
Parameters
- $fieldName : mixed
Tags
reset()
public
final reset(mixed $fieldName) : mixed
Parameters
- $fieldName : mixed
Tags
resortStages()
Resort stages in actual order (if sort of some stages had been updated)
public
resortStages() : Type
Return values
Typesave()
ActiveRecord save.
public
final save() : Result
Tags
Return values
Resultset()
public
final set(mixed $fieldName, mixed $value) : mixed
Parameters
- $fieldName : mixed
- $value : mixed
Tags
setName()
public
setName(string $name) : void
Parameters
- $name : string
setTitle()
public
setTitle(string $title) : void
Parameters
- $title : string
sysFillRelationCollection()
public
sysFillRelationCollection(OneToMany|ManyToMany|string $field) : Collection
Parameters
- $field : OneToMany|ManyToMany|string
Tags
Return values
CollectionsysGetEntity()
public
sysGetEntity() : Entity
Tags
Return values
EntitysysGetPrimary()
Returns [primary => value] array.
public
sysGetPrimary() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>sysGetPrimaryAsString()
public
sysGetPrimaryAsString() : mixed
sysPostSave()
public
sysPostSave() : 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
Return values
stringunset()
public
final unset(mixed $fieldName) : mixed
Parameters
- $fieldName : mixed
Tags
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.