public static function get_locked_page_at($time) {
        $recentsessionlocks = self::get_recent_session_locks();
        foreach ($recentsessionlocks as $recentsessionlock) {
            if ($time >= $recentsessionlock['gained'] &&
                $time <= $recentsessionlock['released']) {
                return $recentsessionlock;
            }
        }
    }
public static function get_locked_page_at($time) {
        $recentsessionlocks = self::get_recent_session_locks();
        foreach ($recentsessionlocks as $recentsessionlock) {
            if ($time >= $recentsessionlock['gained'] &&
                $time <= $recentsessionlock['released']) {
                return $recentsessionlock;
            }
        }
    }
public static function get_locked_page_at ( $ time ) { $ recentsessionlocks = self :: get_recent_session_locks ( ) ; foreach ( $ recentsessionlocks as $ recentsessionlock ) { if ( $ time >= $ recentsessionlock [ 'gained' ] && $ time <= $ recentsessionlock [ 'released' ] ) { return $ recentsessionlock ; } } }
Get the page that blocks other pages at a specific timestamp.

Look for a page whose lock was gained before that timestamp, and released after that timestamp.

@param  float $time Time before session lock starts.
@return array|null
Get the page that blocks other pages at a specific timestamp .