67# return $res; 68# } 69# 70# public static function GetByUrl($url) 71# { 72# $cacheKey = self::BuildGetByURLCacheKey($url); 73# 74# if (($res = CaCacheManager::Get($cacheKey)) === false ) 75# {76# $conn = ConfigurationManager::GetDatabaseConnection();77# 78# $stmt = $conn->Prepare('SELECT * FROM "SitioGetByURL"(:Url);'); 79# $stmt->Bind(':Url', $url, DBConnection::String); 80# 81# $res = null; 82# if ($row = $stmt->SelectRow()) 83# { 84# $res = self::RowToEntity($row); 85# } 86# CACacheManager::Add($cacheKey, $res);