Update
bool CTasks::Update( ID, array arFields, array arParams = array() );
This method modifies elapsed time parameters for the record with ID.
Method parameters
Parameter | Description | Available from version |
---|---|---|
ID | Modified record ID. | |
arFields | Array("field"=>"value", ...). Required fields must be filled out. | |
arParams | Array of additional parameters. Optional. |
Returned value
This method returns true when an update is sucessful. If an error occurs, method will return false. Exceptions will contain error text when it occurs.
Examples of use
<?
if (CModule::IncludeModule("tasks"))
{
$ID = 22; $arFields = array(
"MINUTES" => 120,
"COMMENT_TEXT" => "Added 2 hours."
);
$obElapsed = new CTaskElapsedTime();
$obElapsed->Update($ID, $arFields);
}?>
© «Bitrix24», 2001-2024