Class yii\debug\widgets\NavigationButton
Inheritance | yii\debug\widgets\NavigationButton » yii\base\Widget |
---|---|
Available since extension's version | 2.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
Public Properties
Public Methods
Method | Description | Defined By |
---|---|---|
beforeRun() | yii\debug\widgets\NavigationButton | |
run() | yii\debug\widgets\NavigationButton |
Property Details
Method Details
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();
}
public void run ( ) |
public function run()
{
$method = "render{$this->button}Button";
return $this->$method();
}