Documentation

StartRuntime

public int 
CBPRuntime::StartRuntime( void );

This method launches runtime. Runtime always must be launched prior to being used.

Note: some methods automatically launch the runtime. However, runtime rerunning is safe.

Examples

<?
$runtime = CBPRuntime::GetRuntime();
$runtime->StartRuntime();
$documentService = $runtime->GetService("DocumentService");

$arDocumentFields = $documentService->GetDocumentFields($documentType);
foreach ($arDocumentFields as $key => $value)
$arSelectFields[] = $key;
?>


© «Bitrix24», 2001-2024
Up