Skip to content
PHP Ecosystem
Explore

SidebarNavigation

API reference › Debug Core › View › Sidebar › SidebarNavigation

final readonly classPHPForge\Debug\View\Sidebar\SidebarNavigation
Sourcesrc/View/Sidebar/SidebarNavigation.php

Represents the navigator row of the sidebar snapshot card: the four capture links and whether they act as a grid cursor.

The host computes every value from its own manifest and URL scheme, so this object carries no routing logic. The defaults describe a single capture with nowhere to move.

PropertyTypeDescriptionDefined by
$cursorInitTag readonly constructorstringOptional tag the cursor JS should land on when the sidebar arrives from a panel view’s History link (?cursor=<tag>). Empty string falls back to the newest captured request. Default: ''.SidebarNavigation
$hasNewer readonly constructorbooltrue when there is a newer request available; controls the Newer button. Default: false.SidebarNavigation
$hasOlder readonly constructorbooltrue when there is an older request available; controls the Older button. Default: false.SidebarNavigation
$isCursor readonly constructorbooltrue when the sidebar is rendered for the index page and the navigator buttons act as a grid cursor. Default: false.SidebarNavigation
$isNewest readonly constructorbooltrue when the snapshot is the newest captured request; disables the Newest button. Default: true.SidebarNavigation
$isOldest readonly constructorbooltrue when the snapshot is the oldest captured request; disables the Oldest button. Default: true.SidebarNavigation
$newerUrl readonly constructorstringNewer request link target; empty string when the snapshot is already on the newest row. Default: ''.SidebarNavigation
$newestUrl readonly constructorstringNewest request link target (top of list); empty string renders an empty href. Default: ''.SidebarNavigation
$olderUrl readonly constructorstringOlder request link target; empty string when the snapshot is already on the oldest row. Default: ''.SidebarNavigation
$oldestUrl readonly constructorstringOldest request link target (bottom of list); empty string renders an empty href. Default: ''.SidebarNavigation
MethodDescriptionDefined by
__construct()Creates the sidebar snapshot navigation state.SidebarNavigation
public function __construct(bool $isCursor = false, string $cursorInitTag = '', string $newestUrl = '', string $oldestUrl = '', string $newerUrl = '', string $olderUrl = '', bool $isNewest = true, bool $isOldest = true, bool $hasNewer = false, bool $hasOlder = false)

Creates the sidebar snapshot navigation state.

Parameters

ParameterTypeDescription
$isCursorbool
$cursorInitTagstring
$newestUrlstring
$oldestUrlstring
$newerUrlstring
$olderUrlstring
$isNewestbool
$isOldestbool
$hasNewerbool
$hasOlderbool