Documentation

GetRuntime

CBPRuntime
public function CBPRuntime::GetRuntime();

This static method returns a class instance, presenting the current runtime.

Note: only a single runtime class instance must be present within a hit (Singleton template). This method returns this instance.

Returned value

Returns a class instance, presenting the current runtime.

Examples

<?
$runtime = CBPRuntime::GetRuntime();
$runtime->StartRuntime();
$documentService = $runtime->GetService("DocumentService");
$arDocumentFields = $documentService->GetDocumentFields($documentType);
foreach ($arDocumentFields as $key => $value)
{
print_r($value);
}
?>


© «Bitrix24», 2001-2024