Documentation

GetTemplateList

result_type
CSite::GetTemplateList(
 site_id
);

The method returns list of templates for the specific site. Static method.

Parameters

Parameter Description
site_id Site ID, list of templates for which is to be retrieved.

Returned value

Array of IDs for the site template is returned.

Examples of use

$rsTemplates = CSite::GetTemplateList("s1");
while($arTemplate = $rsTemplates->Fetch())
{
   $result[]  = $arTemplate;
}
echo "<pre>"; print_r($result); echo "</pre>";


© «Bitrix24», 2001-2024
Up