public function get($active_ctx, $local_ctx) {
    $key1 = serialize($active_ctx);
    $key2 = serialize($local_ctx);
    if(property_exists($this->cache, $key1)) {
      $level1 = $this->cache->{$key1};
      if(property_exists($level1, $key2)) {
        return $level1->{$key2};
      }
    }
    return null;
  }
public function get($active_ctx, $local_ctx) {
    $key1 = serialize($active_ctx);
    $key2 = serialize($local_ctx);
    if(property_exists($this->cache, $key1)) {
      $level1 = $this->cache->{$key1};
      if(property_exists($level1, $key2)) {
        return $level1->{$key2};
      }
    }
    return null;
  }
public function get ( $ active_ctx , $ local_ctx ) { $ key1 = serialize ( $ active_ctx ) ; $ key2 = serialize ( $ local_ctx ) ; if ( property_exists ( $ this -> cache , $ key1 ) ) { $ level1 = $ this -> cache -> { $ key1 } ; if ( property_exists ( $ level1 , $ key2 ) ) { return $ level1 -> { $ key2 } ; } } return null ; }
Gets an active context from the cache based on the current active
context and the new local context.

@param stdClass $active_ctx the current active context.
@param stdClass $local_ctx the new local context.

@return mixed a shared copy of the cached active context or null.
Gets an active context from the cache based on the current active context and the new local context .