protected static function cache_get_by_id($id) {
        if (isset(self::$cache_contextsbyid[$id])) {
            return self::$cache_contextsbyid[$id];
        }
        return false;
    }
protected static function cache_get_by_id($id) {
        if (isset(self::$cache_contextsbyid[$id])) {
            return self::$cache_contextsbyid[$id];
        }
        return false;
    }
protected static function cache_get_by_id ( $ id ) { if ( isset ( self :: $ cache_contextsbyid [ $ id ] ) ) { return self :: $ cache_contextsbyid [ $ id ] ; } return false ; }
Gets a context from the cache based on its id.

@static
@param int $id Context ID
@return context|bool Context or false if not in cache
Gets a context from the cache based on its id .