Class yii\debug\widgets\NavigationButton

Inheritanceyii\debug\widgets\NavigationButton » yii\base\Widget
Available since extension's version2.0.11
Source Code https://github.com/yiisoft/yii2-debug/blob/master/src/widgets/NavigationButton.php

Render button for navigation to previous or next request in debug panel

Property Details

Hide inherited properties

$button public property
public string $button null
$manifest public property
public array $manifest null
$panel public property
public yii\debug\Panel $panel null
$tag public property
public string $tag null

Method Details

Hide inherited methods

beforeRun() public method

public void beforeRun ( )

                public function beforeRun()
{
    $manifestKeys = array_keys($this->manifest);
    $this->firstTag = reset($manifestKeys);
    $this->lastTag = end($manifestKeys);
    $this->currentTagIndex = array_search($this->tag, $manifestKeys);
    return parent::beforeRun();
}

            
run() public method

public void run ( )

                public function run()
{
    $method = "render{$this->button}Button";
    return $this->$method();
}