Documentation

update

void
public function update(
 array arFields,
);

The method updates parameters of the specified elapsed time record.

Method parameters

Parameter Description Available from version
arFields Array, containing records of time and comments (MINUTES and COMMENT_TEXT). Before 14.0.10
arFields Array, containing records of time and comments (SECONDS, COMMENT_TEXT and CREATED_DATE). It is permitted to use MINUTES instead of SECONDS, but they cannot be used simultaneously. from 14.0.10

Returned value

When an error occurs, exceptions will contain the error text.

Examples of use

$taskId = ...;
$itemId = ...;
$oTask = CTaskItem::getInstance($taskId, $USER->getId());
$oElapsedItem = new CTaskElapsedItem($oTask, $itemId);
$oElapsedItem->delete(); // $oElapsedItem->update($arFields); / $oElapsedItem->isActionAllowed($actionId);


© «Bitrix24», 2001-2024