| 1 | <?php |
||
| 17 | class ColumnLink extends Column |
||
| 18 | { |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | protected $title; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var string |
||
| 27 | */ |
||
| 28 | protected $class; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @var array |
||
| 32 | */ |
||
| 33 | protected $params; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @var string |
||
| 37 | */ |
||
| 38 | protected $href; |
||
| 39 | |||
| 40 | |||
| 41 | /** |
||
| 42 | * @param DataGrid $grid |
||
| 43 | * @param string $column |
||
| 44 | * @param string $name |
||
| 45 | * @param string $href |
||
| 46 | * @param array $params |
||
| 47 | */ |
||
| 48 | public function __construct(DataGrid $grid, $column, $name, $href, $params) |
||
| 56 | |||
| 57 | |||
| 58 | /** |
||
| 59 | * Render row item into template |
||
| 60 | * @param Row $row |
||
| 61 | * @return mixed |
||
| 62 | */ |
||
| 63 | public function render(Row $row) |
||
| 83 | |||
| 84 | |||
| 85 | /** |
||
| 86 | * Set attribute title |
||
| 87 | * @param string $title |
||
| 88 | */ |
||
| 89 | public function setTitle($title) |
||
| 95 | |||
| 96 | |||
| 97 | /** |
||
| 98 | * Get attribute title |
||
| 99 | */ |
||
| 100 | public function getTitle() |
||
| 104 | |||
| 105 | |||
| 106 | /** |
||
| 107 | * Set attribute class |
||
| 108 | * @param string $class |
||
| 109 | */ |
||
| 110 | public function setClass($class) |
||
| 116 | |||
| 117 | |||
| 118 | /** |
||
| 119 | * Get attribute class |
||
| 120 | */ |
||
| 121 | public function getClass() |
||
| 125 | |||
| 126 | } |
||
| 127 |