Total Complexity | 6 |
Total Lines | 52 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class OrderHistoryController extends \PageController |
||
10 | { |
||
11 | /** |
||
12 | * @var array |
||
13 | */ |
||
14 | private static $allowed_actions = array( |
||
|
|||
15 | 'index', |
||
16 | ); |
||
17 | |||
18 | /** |
||
19 | * @return bool|\SilverStripe\Control\HTTPResponse |
||
20 | */ |
||
21 | public function checkMember() |
||
22 | { |
||
23 | if (Security::getCurrentUser()) { |
||
24 | return true; |
||
25 | } else { |
||
26 | return Security::permissionFailure($this, _t( |
||
27 | 'AccountPage.CANNOTCONFIRMLOGGEDIN', |
||
28 | 'Please login to view this page.' |
||
29 | )); |
||
30 | } |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * @return array |
||
35 | */ |
||
36 | public function index() |
||
37 | { |
||
38 | $this->checkMember(); |
||
39 | return array(); |
||
40 | } |
||
41 | |||
42 | /** |
||
43 | * @param HTTPRequest|null $request |
||
44 | * @return PaginatedList |
||
45 | */ |
||
46 | public function OrderPaginatedList(HTTPRequest $request = null) |
||
61 | } |
||
62 | } |
||
63 |