| 1 | <?php |
||
| 9 | class BackButton extends Widget |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * Html options |
||
| 13 | * @var array |
||
| 14 | */ |
||
| 15 | public $options = [ |
||
| 16 | 'class' => 'btn btn-default', |
||
| 17 | ]; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | public $selectorClass = 'btn-cancel'; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var string |
||
| 26 | */ |
||
| 27 | public $label; |
||
| 28 | |||
| 29 | public function run() |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @return string |
||
| 46 | */ |
||
| 47 | public function getLabel() |
||
| 51 | |||
| 52 | /** |
||
| 53 | * Apply js to view |
||
| 54 | */ |
||
| 55 | protected function registerClientScript() |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @return int |
||
| 62 | */ |
||
| 63 | protected function getBackStepsCount() |
||
| 67 | |||
| 68 | /** |
||
| 69 | * @return string |
||
| 70 | */ |
||
| 71 | protected function getIdentifier() |
||
| 75 | |||
| 76 | /** |
||
| 77 | * @return string |
||
| 78 | */ |
||
| 79 | protected function getCurrentUrl() |
||
| 83 | |||
| 84 | /** |
||
| 85 | * @return string |
||
| 86 | */ |
||
| 87 | protected function getReferrerUrl() |
||
| 91 | } |
||
| 92 |