CBlogSitePath :: GetByID: Bitrix method

      
<?php 
//  CBlogSitePath :: GetByID()
//  /dist/bitrix/modules/blog/general/blog_site_path.php:72

    
function GetByID($ID)
    {
        global 
$DB;

        
$ID IntVal($ID);

        if (isset(
$GLOBALS["BLOG_SITE_PATH"]["BLOG_SITE_PATH_CACHE_".$ID]) && is_array($GLOBALS["BLOG_SITE_PATH"]["BLOG_SITE_PATH_CACHE_".$ID]) && is_set($GLOBALS["BLOG_SITE_PATH"]["BLOG_SITE_PATH_CACHE_".$ID], "ID"))
        {
            return 
$GLOBALS["BLOG_SITE_PATH"]["BLOG_SITE_PATH_CACHE_".$ID];
        }
        else
        {
            
$strSql =
                
"SELECT P.ID, P.SITE_ID, P.PATH, P.TYPE ".
                
"FROM b_blog_site_path P ".
                
"WHERE P.ID = ".$ID."";
            
$dbResult $DB->Query($strSqlFalse"File: ".__FILE__."<br>Line: ".__LINE__);
            if (
$arResult $dbResult->Fetch())
            {
                
$GLOBALS["BLOG_SITE_PATH"]["BLOG_SITE_PATH_CACHE_".$ID] = $arResult;
                
$GLOBALS["BLOG_SITE_PATH"]["BLOG_SITE_PATH1_CACHE_".$arResult["SITE_ID"]] = $arResult;
                return 
$arResult;
            }
        }

        return 
False;
    }