Documentation

GetByID

CDBResult
CTasks::GetByID(
 ID,
 array arParams = array()
);

Returns fields for template by its ID.

Method parameters

Parameter Description Available from version
ID Template ID.
arParams Array of additional parameters. Optional.

Returned value

CDBResult object is returned.

Examples of use

<?
if (CModule::IncludeModule("tasks")) { $rsTemplate = CTaskTemplates::GetByID(104); if ($arTemplate = $rsTemplate->GetNext()) { echo $arTemplate["TITLE"]; } } ?>


© «Bitrix24», 2001-2024
Up