| Total Complexity | 3 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class ShoppingCart extends Estimate |
||
| 15 | { |
||
| 16 | private static $table_name = "ShoppingCart"; |
||
|
|
|||
| 17 | |||
| 18 | /** |
||
| 19 | * Get the link to this controller |
||
| 20 | * |
||
| 21 | * @param string $action The action you want to add to the link |
||
| 22 | * @return string |
||
| 23 | */ |
||
| 24 | public function Link($action = null) |
||
| 25 | { |
||
| 26 | $controller = Injector::inst()->create(ShoppingCartController::class); |
||
| 27 | return $controller->Link($action); |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Get an absolute link to this controller |
||
| 32 | * |
||
| 33 | * @param string $action The action you want to add to the link |
||
| 34 | * @return string |
||
| 35 | */ |
||
| 36 | public function AbsoluteLink($action = null) |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Get a relative (to the root url of the site) link to this |
||
| 43 | * controller |
||
| 44 | * |
||
| 45 | * @param string $action The action you want to add to the link |
||
| 46 | * @return string |
||
| 47 | */ |
||
| 48 | public function RelativeLink($action = null) |
||
| 56 |