GetByID
CDBResult CTasks::GetByID( int ID, bool bCheckPermissions = true, array arParams = array() );
Returns fields for task by its ID.
Note:Method accepts an array of configuration parameters and generates scripts, necessary to show file dialog. Static method.
Method parameters
Parameter | Description | Available from version |
---|---|---|
ID | Task ID. | |
bCheckPermissions | Flag of access rights check for the task. Optional parameter. By default, equals true. | |
arParams | Array of additional parameters. Optional. |
Returned value
CDBResult object is returned.
See Also
- CDBResult
Examples of use
<?
if (CModule::IncludeModule("tasks")) { $rsTask = CTasks::GetByID(332); if ($arTask = $rsTask->GetNext()) { echo $arTask["TITLE"]; } } ?>
© «Bitrix24», 2001-2024