add
object CTaskElapsedItem::add( object CTaskItemInterface, oTaskItem, array arFields = array() );
The method adds elapsed time to the task.
Note: The method accepts an array of configuration parameters and generates scripts, necessary to show file dialog. Static method.
Method parameters
Parameter | Description | Available from version |
---|---|---|
oTaskItem | CTaskItem class object | |
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 use simultaneously. | from 14.0.10 |
Returned value
The method returns the CTaskElapsedItem class object.
© «Bitrix24», 2001-2024