Documentation

GetBySiteID

array
CBlogSitePath::GetBySiteID(
 string siteID
);

The method returns parameters of siteID path. Non-static path.

Method parameters

ParameterDescription
siteID Site ID.

Returned value

Array of the following type is returned:

Array(
    "ID" => "path ID",
    "SITE_ID" => "site ID",
    "PATH" => "Path"
)
If the path is not found, the method will return false.

Note

This method uses built-in caching. As a result, when the method is used multiple times on the page, the database request will be performed only once.

See Also

Examples of use

<?
$SiteID = "ru";
$arSitePath = CBlogSitePath::GetBySiteID($SiteID);
if(is_array($arSitePath))
    print_r($arSitePath);
else
    echo "Path not found.";
?>


© «Bitrix24», 2001-2024
Up