| 1 | <?php namespace Anomaly\PreferencesModule\Preference\Table; |
||
| 12 | class AddonTableBuilder extends TableBuilder |
||
| 13 | { |
||
| 14 | |||
| 15 | /** |
||
| 16 | * The addon type. |
||
| 17 | * |
||
| 18 | * @var string |
||
| 19 | */ |
||
| 20 | protected $type; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * The table columns. |
||
| 24 | * |
||
| 25 | * @var array |
||
| 26 | */ |
||
| 27 | protected $columns = [ |
||
| 28 | [ |
||
| 29 | 'heading' => 'module::field.name.name', |
||
| 30 | 'value' => 'entry.name', |
||
| 31 | ], |
||
| 32 | [ |
||
| 33 | 'heading' => 'module::field.description.name', |
||
| 34 | 'value' => 'entry.description', |
||
| 35 | ], |
||
| 36 | ]; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * The table buttons. |
||
| 40 | * |
||
| 41 | * @var array |
||
| 42 | */ |
||
| 43 | protected $buttons = [ |
||
| 44 | 'preferences' => [ |
||
| 45 | 'href' => 'admin/preferences/{request.route.parameters.type}/{entry.namespace}', |
||
| 46 | ], |
||
| 47 | ]; |
||
| 48 | |||
| 49 | /** |
||
| 50 | * Get the type. |
||
| 51 | * |
||
| 52 | * @return string |
||
| 53 | */ |
||
| 54 | public function getType() |
||
| 58 | |||
| 59 | /** |
||
| 60 | * Set the type. |
||
| 61 | * |
||
| 62 | * @param $type |
||
| 63 | * @return $this |
||
| 64 | */ |
||
| 65 | public function setType($type) |
||
| 71 | } |
||
| 72 |