Conditions | 4 |
Paths | 5 |
Total Lines | 20 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 4 | ||
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 | $value = parent::render($row); |
||
73 | |||
74 | $a = Html::el('a') |
||
75 | ->href($this->createLink($this->href, $this->getItemParams($row, $this->params))) |
||
76 | ->setText($value); |
||
77 | |||
78 | if ($this->title) { $a->title($this->title); } |
||
79 | if ($this->class) { $a->class($this->class); } |
||
80 | |||
81 | return $a; |
||
82 | } |
||
83 | |||
127 |