| 1 | <?php |
||
| 13 | class Row extends Nette\Object |
||
| 14 | { |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var DataGrid |
||
| 18 | */ |
||
| 19 | protected $datagrid; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var mixed |
||
| 23 | */ |
||
| 24 | protected $item; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var string |
||
| 28 | */ |
||
| 29 | protected $primary_key; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @var mixed |
||
| 33 | */ |
||
| 34 | protected $id; |
||
| 35 | |||
| 36 | |||
| 37 | /** |
||
| 38 | * @param mixed $item |
||
| 39 | * @param string $primary_key |
||
| 40 | */ |
||
| 41 | public function __construct(DataGrid $datagrid, $item, $primary_key) |
||
| 49 | |||
| 50 | |||
| 51 | /** |
||
| 52 | * Get id value of item |
||
| 53 | * @return mixed |
||
| 54 | */ |
||
| 55 | public function getId() |
||
| 59 | |||
| 60 | |||
| 61 | /** |
||
| 62 | * Get original item |
||
| 63 | * @return mixed |
||
| 64 | */ |
||
| 65 | public function getItem() |
||
| 69 | |||
| 70 | |||
| 71 | public function hasGroupAction() |
||
| 77 | |||
| 78 | |||
| 79 | public function hasAction($key) |
||
| 85 | |||
| 86 | } |
||
| 87 |