Conditions | 3 |
Paths | 4 |
Total Lines | 20 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
55 | public function renderButton() |
||
56 | { |
||
57 | $link = $this->createLink($this->grid, $this->href, $this->params); |
||
58 | |||
59 | $a = Html::el('a')->href($link); |
||
60 | |||
61 | $this->tryAddIcon($a, $this->getIcon(), $this->getText()); |
||
62 | |||
63 | $a->add($this->text); |
||
64 | |||
65 | if ($this->title) { |
||
66 | $a->title($this->grid->getTranslator()->translate($this->title)); |
||
67 | } |
||
68 | |||
69 | if ($this->class) { |
||
70 | $a->class($this->class); |
||
71 | } |
||
72 | |||
73 | return $a; |
||
74 | } |
||
75 | |||
77 |