1 | <?php |
||
32 | class CreditcardTemplate extends \Magento\Config\Block\System\Config\Form\Field\FieldArray\AbstractFieldArray |
||
33 | { |
||
34 | /** |
||
35 | * Default configuration |
||
36 | * |
||
37 | * @var array |
||
38 | */ |
||
39 | protected $aDefaultConfig = [ |
||
40 | 'Number_type' => 'tel', |
||
41 | 'Number_count' => '30', |
||
42 | 'Number_max' => '16', |
||
43 | 'Number_iframe' => 'standard', |
||
44 | 'Number_width' => '202px', |
||
45 | 'Number_height' => '20px', |
||
46 | 'Number_style' => 'standard', |
||
47 | 'Number_css' => '', |
||
48 | 'CVC_type' => 'tel', |
||
49 | 'CVC_count' => '30', |
||
50 | 'CVC_max' => '4', |
||
51 | 'CVC_iframe' => 'standard', |
||
52 | 'CVC_width' => '202px', |
||
53 | 'CVC_height' => '20px', |
||
54 | 'CVC_style' => 'standard', |
||
55 | 'CVC_css' => '', |
||
56 | 'Month_type' => 'select', |
||
57 | 'Month_count' => '3', |
||
58 | 'Month_max' => '2', |
||
59 | 'Month_iframe' => 'custom', |
||
60 | 'Month_width' => '120px', |
||
61 | 'Month_height' => '20px', |
||
62 | 'Month_style' => 'standard', |
||
63 | 'Month_css' => '', |
||
64 | 'Year_type' => 'select', |
||
65 | 'Year_count' => '5', |
||
66 | 'Year_max' => '4', |
||
67 | 'Year_iframe' => 'custom', |
||
68 | 'Year_width' => '120px', |
||
69 | 'Year_height' => '20px', |
||
70 | 'Year_style' => 'standard', |
||
71 | 'Year_css' => '', |
||
72 | 'Iframe_width' => '365px', |
||
73 | 'Iframe_height' => '30px', |
||
74 | 'Standard_input' => "width:223px;height:30px;padding: 0 9px;font-size:14px;font-family:'Helvetica Neue',Verdana,Arial,sans-serif;", |
||
75 | 'Standard_selection' => 'width:100px;', |
||
76 | ]; |
||
77 | |||
78 | /** |
||
79 | * Template |
||
80 | * |
||
81 | * @var string |
||
82 | */ |
||
83 | protected $_template = 'Payone_Core::system/config/form/field/creditcard_template.phtml'; |
||
84 | |||
85 | /** |
||
86 | * Initialise form fields |
||
87 | * |
||
88 | * @return void |
||
89 | */ |
||
90 | protected function _construct() |
||
97 | |||
98 | /** |
||
99 | * Get all field-types |
||
100 | * |
||
101 | * @return array |
||
102 | */ |
||
103 | public function getCCFields() |
||
112 | |||
113 | /** |
||
114 | * Get available styles for dropdown |
||
115 | * |
||
116 | * @return array |
||
117 | */ |
||
118 | public function getCCStyles() |
||
125 | |||
126 | /** |
||
127 | * Get available types for dropdown |
||
128 | * |
||
129 | * @param string $sField |
||
130 | * @return array |
||
131 | */ |
||
132 | public function getCCTypes($sField) |
||
143 | |||
144 | /** |
||
145 | * Get configured value or default value |
||
146 | * |
||
147 | * @param string $sIdent |
||
148 | * @return string |
||
149 | */ |
||
150 | public function fcpoGetValue($sIdent) |
||
163 | } |
||
164 |