Bitrix API

Task extends Item

FinalYes

Class Task

Table of Contents

Properties

$title  : string

Methods

checkData()  : mixed
complete()  : $this
getAccessControllerClass()  : mixed
getDataSourceClass()  : mixed
getDuration()  : mixed
getFieldsDescription()  : mixed
getShortPreview()  : mixed
getUserFieldControllerClass()  : mixed
prepareData()  : mixed
processEnterBatchMode()  : mixed
processLeaveBatchMode()  : mixed
save()  : mixed
touch()  : $this
Set task change time to the specified value
transformToTask()  : Result
Creates new virtual (not presented in database) instance of \Bitrix\Tasks\Item\Task based on data from $this
transformToTemplate()  : Result
Creates new virtual (not presented in database) instance of \Bitrix\Tasks\Item\Task\Template based on data from $this

Properties

$title

public string $title

Methods

checkData()

public checkData(mixed $result) : mixed
Parameters
$result : mixed

complete()

public complete([array<string|int, mixed> $params = array() ]) : $this
Parameters
$params : array<string|int, mixed> = array()
Tags
see
Task::update()
see
CTaskItem::complete()

Set task status to 'completed' or 'awaiting approval'

throws
SystemException
Return values
$this

getAccessControllerClass()

public static getAccessControllerClass() : mixed

getDataSourceClass()

public static getDataSourceClass() : mixed

getDuration()

public getDuration([mixed $start = null ][, mixed $end = null ][, array<string|int, mixed> $parameters = array() ]) : mixed
Parameters
$start : mixed = null
$end : mixed = null
$parameters : array<string|int, mixed> = array()

getFieldsDescription()

public static getFieldsDescription() : mixed

getShortPreview()

public getShortPreview() : mixed

getUserFieldControllerClass()

public static getUserFieldControllerClass() : mixed

prepareData()

public prepareData(mixed $result) : mixed
Parameters
$result : mixed

processEnterBatchMode()

public static processEnterBatchMode(Trigger $state) : mixed
Parameters
$state : Trigger

processLeaveBatchMode()

public static processLeaveBatchMode(Trigger $state) : mixed
Parameters
$state : Trigger

save()

public save([mixed $settings = array() ]) : mixed
Parameters
$settings : mixed = array()
Tags
see
Task::update()

touch()

Set task change time to the specified value

public touch([null $time = null ]) : $this
Parameters
$time : null = null
Return values
$this

transformToTask()

Creates new virtual (not presented in database) instance of \Bitrix\Tasks\Item\Task based on data from $this

public transformToTask() : Result
Return values
Result

transformToTemplate()

Creates new virtual (not presented in database) instance of \Bitrix\Tasks\Item\Task\Template based on data from $this

public transformToTemplate() : Result
Return values
Result

        
On this page

Search results