| Total Complexity | 7 |
| Total Lines | 71 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | trait UrlsTrait { |
||
| 12 | |||
| 13 | /** |
||
| 14 | * To override |
||
| 15 | * Returns the route for refreshing the index route (default : /refresh_) |
||
| 16 | * |
||
| 17 | * @return string |
||
| 18 | */ |
||
| 19 | public function getRouteRefresh() { |
||
| 20 | return "/refresh_"; |
||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * To override |
||
| 25 | * Returns the route for the detail route, when the user click on a dataTable row (default : /showDetail) |
||
| 26 | * |
||
| 27 | * @return string |
||
| 28 | */ |
||
| 29 | public function getRouteDetails() { |
||
| 30 | return "/showDetail"; |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * To override |
||
| 35 | * Returns the route for deleting an instance (default : /delete) |
||
| 36 | * |
||
| 37 | * @return string |
||
| 38 | */ |
||
| 39 | public function getRouteDelete() { |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * To override |
||
| 45 | * Returns the route for editing an instance (default : /edit) |
||
| 46 | * |
||
| 47 | * @return string |
||
| 48 | */ |
||
| 49 | public function getRouteEdit() { |
||
| 50 | return "/edit"; |
||
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * To override |
||
| 55 | * Returns the route for displaying an instance (default : /display) |
||
| 56 | * |
||
| 57 | * @return string |
||
| 58 | */ |
||
| 59 | public function getRouteDisplay() { |
||
| 61 | } |
||
| 62 | |||
| 63 | /** |
||
| 64 | * To override |
||
| 65 | * Returns the route for refreshing the dataTable (default : /refreshTable) |
||
| 66 | * |
||
| 67 | * @return string |
||
| 68 | */ |
||
| 69 | public function getRouteRefreshTable() { |
||
| 71 | } |
||
| 72 | |||
| 73 | /** |
||
| 74 | * To override |
||
| 75 | * Returns the url associated with a foreign key instance in list |
||
| 76 | * |
||
| 77 | * @param string $model |
||
| 78 | * @return string |
||
| 79 | */ |
||
| 80 | public function getDetailClickURL($model) { |
||
| 85 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.