Bitrix API

TaskLogService

Table of Contents

Methods

__construct()  : mixed
add()  : TaskLog
Add entry to task history
castValueTypeByKeyInTrackedFields()  : void
Casting the type of the received value by its field in $this->getTrackedFields() to the desired one
delete()  : bool
Delete task log
deleteByTaskId()  : bool
Delete all entries from task history
getChanges()  : array<string|int, Change>
Get changes between current task fields and new ones
getTrackedFields()  : array<string|int, mixed>
Getting the union of self::$comparedFields and user fields

Methods

castValueTypeByKeyInTrackedFields()

Casting the type of the received value by its field in $this->getTrackedFields() to the desired one

public castValueTypeByKeyInTrackedFields(mixed &$value, int|string $key) : void
Parameters
$value : mixed
$key : int|string

getChanges()

Get changes between current task fields and new ones

public getChanges(array<string|int, mixed> $currentFields, array<string|int, mixed> $newFields) : array<string|int, Change>
Parameters
$currentFields : array<string|int, mixed>
$newFields : array<string|int, mixed>
Tags
throws
ArgumentException
throws
LoaderException
throws
ObjectPropertyException
throws
SystemException
Return values
array<string|int, Change>

getTrackedFields()

Getting the union of self::$comparedFields and user fields

public getTrackedFields() : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results