Total Complexity | 2 |
Total Lines | 50 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | class OrderHistory extends \Page |
||
13 | { |
||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | private static $singular_name = 'Order History'; |
||
|
|||
18 | |||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | private static $plural_name = 'Order Histories'; |
||
23 | |||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | private static $description = 'Show a customers past orders. Requires authentication'; |
||
28 | |||
29 | /** |
||
30 | * @var array |
||
31 | */ |
||
32 | private static $db = [ |
||
33 | 'PerPage' => 'Int', |
||
34 | ]; |
||
35 | |||
36 | /** |
||
37 | * @var array |
||
38 | */ |
||
39 | private static $defaults = [ |
||
40 | 'PerPage' => 10, |
||
41 | ]; |
||
42 | |||
43 | /** |
||
44 | * @var string |
||
45 | */ |
||
46 | private static $table_name = 'FoxyOrderHistory'; |
||
47 | |||
48 | /** |
||
49 | * return all current Member's Orders. |
||
50 | * |
||
51 | * @return bool|\SilverStripe\ORM\DataList |
||
52 | */ |
||
53 | public function getOrderList() |
||
64 |