Conditions | 4 |
Paths | 5 |
Total Lines | 24 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 5 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
63 | public function render(Row $row) |
||
64 | { |
||
65 | /** |
||
66 | * Renderer function may be used |
||
67 | */ |
||
68 | try { |
||
69 | return $this->useRenderer($row); |
||
70 | } catch (DataGridColumnRendererException $e) { |
||
|
|||
71 | /** |
||
72 | * Do not use renderer |
||
73 | */ |
||
74 | } |
||
75 | |||
76 | $value = parent::render($row); |
||
77 | |||
78 | $a = Html::el('a') |
||
79 | ->href($this->createLink($this->href, $this->getItemParams($row, $this->params))) |
||
80 | ->setText($value); |
||
81 | |||
82 | if ($this->title) { $a->title($this->title); } |
||
83 | if ($this->class) { $a->class($this->class); } |
||
84 | |||
85 | return $a; |
||
86 | } |
||
87 | |||
131 |