Documentation

GetByID

array
CBlogSitePath::GetByID(
 int ID
);

The method returns parameters of the path with the ID. Non-static method.

Method parameters

ParameterDescription
ID Path 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

<?
$ID = 1;
$arSitePath = CBlogSitePath::GetByID($ID);
if(is_array($arSitePath))
    print_r($arSitePath);
else
    echo "Path not found.";
?>


© «Bitrix24», 2001-2024
Up