1
1
<?php
2
2
/**
3
- * Copyright © 2016 Magmodules.eu. All rights reserved.
3
+ * Copyright © 2017 Magmodules.eu. All rights reserved.
4
4
* See COPYING.txt for license details.
5
5
*/
6
+
6
7
namespace Magmodules \TheFeedbackCompany \Block \Adminhtml \System \Config \Form ;
7
8
8
9
use Magento \Backend \Block \Template \Context ;
13
14
class ImportButton extends Field
14
15
{
15
16
16
- protected $ rev ;
17
- protected $ request ;
17
+ private $ rev ;
18
+ private $ request ;
18
19
protected $ _template = 'Magmodules_TheFeedbackCompany::system/config/button/button.phtml ' ;
19
20
20
21
/**
21
- * @param Context $context
22
+ * @param Context $context
22
23
* @param ReviewsHelper $revHelper
23
- * @param array $data
24
+ * @param array $data
24
25
*/
25
26
public function __construct (
26
27
Context $ context ,
@@ -34,6 +35,7 @@ public function __construct(
34
35
35
36
/**
36
37
* @param AbstractElement $element
38
+ *
37
39
* @return string
38
40
*/
39
41
public function render (AbstractElement $ element )
@@ -45,6 +47,7 @@ public function render(AbstractElement $element)
45
47
46
48
/**
47
49
* @param AbstractElement $element
50
+ *
48
51
* @return string
49
52
*/
50
53
public function _getElementHtml (AbstractElement $ element )
@@ -53,7 +56,8 @@ public function _getElementHtml(AbstractElement $element)
53
56
}
54
57
55
58
/**
56
- * Returns url for review import
59
+ * Returns url for review import.
60
+ *
57
61
* @return string
58
62
*/
59
63
public function getAjaxUrl ()
@@ -68,7 +72,8 @@ public function getAjaxUrl()
68
72
}
69
73
70
74
/**
71
- * Get's last imported date to display as comment msg under button
75
+ * Last importdate to display as comment msg under button.
76
+ *
72
77
* @return mixed
73
78
*/
74
79
public function getLastImported ()
@@ -94,6 +99,7 @@ public function getButtonHtml()
94
99
95
100
/**
96
101
* Checks if store/website view has all oauth data.
102
+ *
97
103
* @return bool
98
104
*/
99
105
public function checkOauthData ()
0 commit comments