1 | <?php |
||
24 | class Settings extends AbstractHelper implements SettingsInterface |
||
25 | { |
||
26 | /** |
||
27 | * @var string |
||
28 | */ |
||
29 | const PRODUCT_ATTACHMENT_DEFAULT_TITLE_XML_PATH = 'catalog/product_attachments/default_title'; |
||
30 | const PRODUCT_ATTACHMENT_OPEN_IN_NEW_WINDOW_XML_PATH = 'catalog/product_attachments/links_target_new_window'; |
||
31 | const PRODUCT_ATTACHMENT_USE_CONTENT_DISPOSITION_XML_PATH = 'catalog/product_attachments/content_disposition'; |
||
32 | |||
33 | /** |
||
34 | * @var ScopeConfigInterface |
||
35 | */ |
||
36 | protected $scopeConfig; |
||
37 | |||
38 | /** |
||
39 | * @param Context $context |
||
40 | */ |
||
41 | public function __construct(Context $context) |
||
46 | |||
47 | /** |
||
48 | * @param string $scope |
||
49 | * @return string |
||
50 | */ |
||
51 | public function getAttachmentDefaultTitle($scope = ScopeInterface::SCOPE_STORE): string |
||
55 | |||
56 | /** |
||
57 | * @param string $scope |
||
58 | * @return bool |
||
59 | */ |
||
60 | public function areLinksOpenedInNewWindow($scope = ScopeInterface::SCOPE_STORE): bool |
||
64 | |||
65 | /** |
||
66 | * @param string $scope |
||
67 | * @return string |
||
68 | */ |
||
69 | public function getContentDisposition($scope = ScopeInterface::SCOPE_STORE): string |
||
73 | } |
||
74 |