1 | <?php |
||
27 | class AttachmentList extends Template |
||
28 | { |
||
29 | /** |
||
30 | * @var bool |
||
31 | */ |
||
32 | private $isCollectionLoaded = false; |
||
33 | |||
34 | /** |
||
35 | * @var PurchasedItemsAttachmentProviderInterface |
||
36 | */ |
||
37 | private $purchasedItemsAttachmentProvider; |
||
38 | |||
39 | /** |
||
40 | * @var SettingsInterface |
||
41 | */ |
||
42 | private $settings; |
||
43 | |||
44 | /** |
||
45 | * @var Collection |
||
46 | */ |
||
47 | private $collection; |
||
48 | |||
49 | /** |
||
50 | * @var CurrentCustomer |
||
51 | */ |
||
52 | private $currentCustomer; |
||
53 | |||
54 | /** |
||
55 | * @var ManagerInterface |
||
56 | */ |
||
57 | private $messageManager; |
||
58 | |||
59 | /** |
||
60 | * @param PurchasedItemsAttachmentProviderInterface $purchasedItemsAttachmentProvider |
||
61 | * @param SettingsInterface $settings |
||
62 | * @param CurrentCustomer $currentCustomer |
||
63 | * @param Context $context |
||
64 | * @param ManagerInterface $messageManager |
||
65 | * @param array $data |
||
66 | */ |
||
67 | public function __construct( |
||
81 | |||
82 | /** |
||
83 | * @return $this |
||
84 | */ |
||
85 | protected function _prepareLayout() |
||
96 | |||
97 | /** |
||
98 | * @return Collection |
||
99 | */ |
||
100 | public function getAttachments() : Collection |
||
117 | |||
118 | /** |
||
119 | * @return string |
||
120 | */ |
||
121 | public function getBackUrl() : string |
||
129 | |||
130 | /** |
||
131 | * @param AttachmentInterface $attachment |
||
132 | * @return string |
||
133 | */ |
||
134 | public function getDownloadUrl(AttachmentInterface $attachment) : string |
||
141 | |||
142 | /** |
||
143 | * @return bool |
||
144 | */ |
||
145 | public function getIsOpenInNewWindow() : bool |
||
149 | } |
||
150 |