@@ -56,10 +56,10 @@ |
||
| 56 | 56 | |
| 57 | 57 | protected function initializeMappings() |
| 58 | 58 | { |
| 59 | - $this->mappings['scaleWithDocument'] = function ($value) { |
|
| 59 | + $this->mappings['scaleWithDocument'] = function($value) { |
|
| 60 | 60 | $this->object->setScaleWithDocument($value); |
| 61 | 61 | }; |
| 62 | - $this->mappings['alignWithMargins'] = function ($value) { |
|
| 62 | + $this->mappings['alignWithMargins'] = function($value) { |
|
| 63 | 63 | $this->object->setAlignWithMargins($value); |
| 64 | 64 | }; |
| 65 | 65 | } |
@@ -56,10 +56,12 @@ |
||
| 56 | 56 | |
| 57 | 57 | protected function initializeMappings() |
| 58 | 58 | { |
| 59 | - $this->mappings['scaleWithDocument'] = function ($value) { |
|
| 59 | + $this->mappings['scaleWithDocument'] = function ($value) |
|
| 60 | + { |
|
| 60 | 61 | $this->object->setScaleWithDocument($value); |
| 61 | 62 | }; |
| 62 | - $this->mappings['alignWithMargins'] = function ($value) { |
|
| 63 | + $this->mappings['alignWithMargins'] = function ($value) |
|
| 64 | + { |
|
| 63 | 65 | $this->object->setAlignWithMargins($value); |
| 64 | 66 | }; |
| 65 | 67 | } |
@@ -71,167 +71,167 @@ |
||
| 71 | 71 | protected function initializeMappings() |
| 72 | 72 | { |
| 73 | 73 | $this->mappings['columnDimension']['__multi'] = true; |
| 74 | - $this->mappings['columnDimension']['__object'] = function ($key = 'default') { |
|
| 74 | + $this->mappings['columnDimension']['__object'] = function($key = 'default') { |
|
| 75 | 75 | return $key === 'default' ? $this->object->getDefaultColumnDimension() : $this->object->getColumnDimension($key); |
| 76 | 76 | }; |
| 77 | - $this->mappings['columnDimension']['autoSize'] = function ($key, $value) { |
|
| 77 | + $this->mappings['columnDimension']['autoSize'] = function($key, $value) { |
|
| 78 | 78 | $this->mappings['columnDimension']['__object']($key)->setAutoSize($value); |
| 79 | 79 | }; |
| 80 | - $this->mappings['columnDimension']['collapsed'] = function ($key, $value) { |
|
| 80 | + $this->mappings['columnDimension']['collapsed'] = function($key, $value) { |
|
| 81 | 81 | $this->mappings['columnDimension']['__object']($key)->setCollapsed($value); |
| 82 | 82 | }; |
| 83 | - $this->mappings['columnDimension']['columnIndex'] = function ($key, $value) { |
|
| 83 | + $this->mappings['columnDimension']['columnIndex'] = function($key, $value) { |
|
| 84 | 84 | $this->mappings['columnDimension']['__object']($key)->setColumnIndex($value); |
| 85 | 85 | }; |
| 86 | - $this->mappings['columnDimension']['outlineLevel'] = function ($key, $value) { |
|
| 86 | + $this->mappings['columnDimension']['outlineLevel'] = function($key, $value) { |
|
| 87 | 87 | $this->mappings['columnDimension']['__object']($key)->setOutlineLevel($value); |
| 88 | 88 | }; |
| 89 | - $this->mappings['columnDimension']['visible'] = function ($key, $value) { |
|
| 89 | + $this->mappings['columnDimension']['visible'] = function($key, $value) { |
|
| 90 | 90 | $this->mappings['columnDimension']['__object']($key)->setVisible($value); |
| 91 | 91 | }; |
| 92 | - $this->mappings['columnDimension']['width'] = function ($key, $value) { |
|
| 92 | + $this->mappings['columnDimension']['width'] = function($key, $value) { |
|
| 93 | 93 | $this->mappings['columnDimension']['__object']($key)->setWidth($value); |
| 94 | 94 | }; |
| 95 | - $this->mappings['columnDimension']['xfIndex'] = function ($key, $value) { |
|
| 95 | + $this->mappings['columnDimension']['xfIndex'] = function($key, $value) { |
|
| 96 | 96 | $this->mappings['columnDimension']['__object']($key)->setXfIndex($value); |
| 97 | 97 | }; |
| 98 | - $this->mappings['pageMargins']['top'] = function ($value) { |
|
| 98 | + $this->mappings['pageMargins']['top'] = function($value) { |
|
| 99 | 99 | $this->object->getPageMargins()->setTop($value); |
| 100 | 100 | }; |
| 101 | - $this->mappings['pageMargins']['bottom'] = function ($value) { |
|
| 101 | + $this->mappings['pageMargins']['bottom'] = function($value) { |
|
| 102 | 102 | $this->object->getPageMargins()->setBottom($value); |
| 103 | 103 | }; |
| 104 | - $this->mappings['pageMargins']['left'] = function ($value) { |
|
| 104 | + $this->mappings['pageMargins']['left'] = function($value) { |
|
| 105 | 105 | $this->object->getPageMargins()->setLeft($value); |
| 106 | 106 | }; |
| 107 | - $this->mappings['pageMargins']['right'] = function ($value) { |
|
| 107 | + $this->mappings['pageMargins']['right'] = function($value) { |
|
| 108 | 108 | $this->object->getPageMargins()->setRight($value); |
| 109 | 109 | }; |
| 110 | - $this->mappings['pageMargins']['header'] = function ($value) { |
|
| 110 | + $this->mappings['pageMargins']['header'] = function($value) { |
|
| 111 | 111 | $this->object->getPageMargins()->setHeader($value); |
| 112 | 112 | }; |
| 113 | - $this->mappings['pageMargins']['footer'] = function ($value) { |
|
| 113 | + $this->mappings['pageMargins']['footer'] = function($value) { |
|
| 114 | 114 | $this->object->getPageMargins()->setFooter($value); |
| 115 | 115 | }; |
| 116 | - $this->mappings['pageSetup']['fitToHeight'] = function ($value) { |
|
| 116 | + $this->mappings['pageSetup']['fitToHeight'] = function($value) { |
|
| 117 | 117 | $this->object->getPageSetup()->setFitToHeight($value); |
| 118 | 118 | }; |
| 119 | - $this->mappings['pageSetup']['fitToPage'] = function ($value) { |
|
| 119 | + $this->mappings['pageSetup']['fitToPage'] = function($value) { |
|
| 120 | 120 | $this->object->getPageSetup()->setFitToPage($value); |
| 121 | 121 | }; |
| 122 | - $this->mappings['pageSetup']['fitToWidth'] = function ($value) { |
|
| 122 | + $this->mappings['pageSetup']['fitToWidth'] = function($value) { |
|
| 123 | 123 | $this->object->getPageSetup()->setFitToWidth($value); |
| 124 | 124 | }; |
| 125 | - $this->mappings['pageSetup']['horizontalCentered'] = function ($value) { |
|
| 125 | + $this->mappings['pageSetup']['horizontalCentered'] = function($value) { |
|
| 126 | 126 | $this->object->getPageSetup()->setHorizontalCentered($value); |
| 127 | 127 | }; |
| 128 | - $this->mappings['pageSetup']['orientation'] = function ($value) { |
|
| 128 | + $this->mappings['pageSetup']['orientation'] = function($value) { |
|
| 129 | 129 | $this->object->getPageSetup()->setOrientation($value); |
| 130 | 130 | }; |
| 131 | - $this->mappings['pageSetup']['paperSize'] = function ($value) { |
|
| 131 | + $this->mappings['pageSetup']['paperSize'] = function($value) { |
|
| 132 | 132 | $this->object->getPageSetup()->setPaperSize($value); |
| 133 | 133 | }; |
| 134 | - $this->mappings['pageSetup']['printArea'] = function ($value) { |
|
| 134 | + $this->mappings['pageSetup']['printArea'] = function($value) { |
|
| 135 | 135 | $this->object->getPageSetup()->setPrintArea($value); |
| 136 | 136 | }; |
| 137 | - $this->mappings['pageSetup']['scale'] = function ($value) { |
|
| 137 | + $this->mappings['pageSetup']['scale'] = function($value) { |
|
| 138 | 138 | $this->object->getPageSetup()->setScale($value); |
| 139 | 139 | }; |
| 140 | - $this->mappings['pageSetup']['verticalCentered'] = function ($value) { |
|
| 140 | + $this->mappings['pageSetup']['verticalCentered'] = function($value) { |
|
| 141 | 141 | $this->object->getPageSetup()->setVerticalCentered($value); |
| 142 | 142 | }; |
| 143 | - $this->mappings['printGridlines'] = function ($value) { |
|
| 143 | + $this->mappings['printGridlines'] = function($value) { |
|
| 144 | 144 | $this->object->setPrintGridlines($value); |
| 145 | 145 | }; |
| 146 | - $this->mappings['protection']['autoFilter'] = function ($value) { |
|
| 146 | + $this->mappings['protection']['autoFilter'] = function($value) { |
|
| 147 | 147 | $this->object->getProtection()->setAutoFilter($value); |
| 148 | 148 | }; |
| 149 | - $this->mappings['protection']['deleteColumns'] = function ($value) { |
|
| 149 | + $this->mappings['protection']['deleteColumns'] = function($value) { |
|
| 150 | 150 | $this->object->getProtection()->setDeleteColumns($value); |
| 151 | 151 | }; |
| 152 | - $this->mappings['protection']['deleteRows'] = function ($value) { |
|
| 152 | + $this->mappings['protection']['deleteRows'] = function($value) { |
|
| 153 | 153 | $this->object->getProtection()->setDeleteRows($value); |
| 154 | 154 | }; |
| 155 | - $this->mappings['protection']['formatCells'] = function ($value) { |
|
| 155 | + $this->mappings['protection']['formatCells'] = function($value) { |
|
| 156 | 156 | $this->object->getProtection()->setFormatCells($value); |
| 157 | 157 | }; |
| 158 | - $this->mappings['protection']['formatColumns'] = function ($value) { |
|
| 158 | + $this->mappings['protection']['formatColumns'] = function($value) { |
|
| 159 | 159 | $this->object->getProtection()->setFormatColumns($value); |
| 160 | 160 | }; |
| 161 | - $this->mappings['protection']['formatRows'] = function ($value) { |
|
| 161 | + $this->mappings['protection']['formatRows'] = function($value) { |
|
| 162 | 162 | $this->object->getProtection()->setFormatRows($value); |
| 163 | 163 | }; |
| 164 | - $this->mappings['protection']['insertColumns'] = function ($value) { |
|
| 164 | + $this->mappings['protection']['insertColumns'] = function($value) { |
|
| 165 | 165 | $this->object->getProtection()->setInsertColumns($value); |
| 166 | 166 | }; |
| 167 | - $this->mappings['protection']['insertHyperlinks'] = function ($value) { |
|
| 167 | + $this->mappings['protection']['insertHyperlinks'] = function($value) { |
|
| 168 | 168 | $this->object->getProtection()->setInsertHyperlinks($value); |
| 169 | 169 | }; |
| 170 | - $this->mappings['protection']['insertRows'] = function ($value) { |
|
| 170 | + $this->mappings['protection']['insertRows'] = function($value) { |
|
| 171 | 171 | $this->object->getProtection()->setInsertRows($value); |
| 172 | 172 | }; |
| 173 | - $this->mappings['protection']['objects'] = function ($value) { |
|
| 173 | + $this->mappings['protection']['objects'] = function($value) { |
|
| 174 | 174 | $this->object->getProtection()->setObjects($value); |
| 175 | 175 | }; |
| 176 | - $this->mappings['protection']['password'] = function ($value) { |
|
| 176 | + $this->mappings['protection']['password'] = function($value) { |
|
| 177 | 177 | $this->object->getProtection()->setPassword($value); |
| 178 | 178 | }; |
| 179 | - $this->mappings['protection']['pivotTables'] = function ($value) { |
|
| 179 | + $this->mappings['protection']['pivotTables'] = function($value) { |
|
| 180 | 180 | $this->object->getProtection()->setPivotTables($value); |
| 181 | 181 | }; |
| 182 | - $this->mappings['protection']['scenarios'] = function ($value) { |
|
| 182 | + $this->mappings['protection']['scenarios'] = function($value) { |
|
| 183 | 183 | $this->object->getProtection()->setScenarios($value); |
| 184 | 184 | }; |
| 185 | - $this->mappings['protection']['selectLockedCells'] = function ($value) { |
|
| 185 | + $this->mappings['protection']['selectLockedCells'] = function($value) { |
|
| 186 | 186 | $this->object->getProtection()->setSelectLockedCells($value); |
| 187 | 187 | }; |
| 188 | - $this->mappings['protection']['selectUnlockedCells'] = function ($value) { |
|
| 188 | + $this->mappings['protection']['selectUnlockedCells'] = function($value) { |
|
| 189 | 189 | $this->object->getProtection()->setSelectUnlockedCells($value); |
| 190 | 190 | }; |
| 191 | - $this->mappings['protection']['sheet'] = function ($value) { |
|
| 191 | + $this->mappings['protection']['sheet'] = function($value) { |
|
| 192 | 192 | $this->object->getProtection()->setSheet($value); |
| 193 | 193 | }; |
| 194 | - $this->mappings['protection']['sort'] = function ($value) { |
|
| 194 | + $this->mappings['protection']['sort'] = function($value) { |
|
| 195 | 195 | $this->object->getProtection()->setSort($value); |
| 196 | 196 | }; |
| 197 | - $this->mappings['rightToLeft'] = function ($value) { |
|
| 197 | + $this->mappings['rightToLeft'] = function($value) { |
|
| 198 | 198 | $this->object->setRightToLeft($value); |
| 199 | 199 | }; |
| 200 | 200 | $this->mappings['rowDimension']['__multi'] = true; |
| 201 | - $this->mappings['rowDimension']['__object'] = function ($key) { |
|
| 201 | + $this->mappings['rowDimension']['__object'] = function($key) { |
|
| 202 | 202 | return $key === 'default' ? $this->object->getDefaultRowDimension() : $this->object->getRowDimension($key); |
| 203 | 203 | }; |
| 204 | - $this->mappings['rowDimension']['collapsed'] = function ($key, $value) { |
|
| 204 | + $this->mappings['rowDimension']['collapsed'] = function($key, $value) { |
|
| 205 | 205 | $this->mappings['rowDimension']['__object']($key)->setCollapsed($value); |
| 206 | 206 | }; |
| 207 | - $this->mappings['rowDimension']['outlineLevel'] = function ($key, $value) { |
|
| 207 | + $this->mappings['rowDimension']['outlineLevel'] = function($key, $value) { |
|
| 208 | 208 | $this->mappings['rowDimension']['__object']($key)->setOutlineLevel($value); |
| 209 | 209 | }; |
| 210 | - $this->mappings['rowDimension']['rowHeight'] = function ($key, $value) { |
|
| 210 | + $this->mappings['rowDimension']['rowHeight'] = function($key, $value) { |
|
| 211 | 211 | $this->mappings['rowDimension']['__object']($key)->setRowHeight($value); |
| 212 | 212 | }; |
| 213 | - $this->mappings['rowDimension']['rowIndex'] = function ($key, $value) { |
|
| 213 | + $this->mappings['rowDimension']['rowIndex'] = function($key, $value) { |
|
| 214 | 214 | $this->mappings['rowDimension']['__object']($key)->setRowIndex($value); |
| 215 | 215 | }; |
| 216 | - $this->mappings['rowDimension']['visible'] = function ($key, $value) { |
|
| 216 | + $this->mappings['rowDimension']['visible'] = function($key, $value) { |
|
| 217 | 217 | $this->mappings['rowDimension']['__object']($key)->setVisible($value); |
| 218 | 218 | }; |
| 219 | - $this->mappings['rowDimension']['xfIndex'] = function ($key, $value) { |
|
| 219 | + $this->mappings['rowDimension']['xfIndex'] = function($key, $value) { |
|
| 220 | 220 | $this->mappings['rowDimension']['__object']($key)->setXfIndex($value); |
| 221 | 221 | }; |
| 222 | - $this->mappings['rowDimension']['zeroHeight'] = function ($key, $value) { |
|
| 222 | + $this->mappings['rowDimension']['zeroHeight'] = function($key, $value) { |
|
| 223 | 223 | $this->mappings['rowDimension']['__object']($key)->setZeroHeight($value); |
| 224 | 224 | }; |
| 225 | - $this->mappings['sheetState'] = function ($value) { |
|
| 225 | + $this->mappings['sheetState'] = function($value) { |
|
| 226 | 226 | $this->object->setSheetState($value); |
| 227 | 227 | }; |
| 228 | - $this->mappings['showGridlines'] = function ($value) { |
|
| 228 | + $this->mappings['showGridlines'] = function($value) { |
|
| 229 | 229 | $this->object->setShowGridlines($value); |
| 230 | 230 | }; |
| 231 | - $this->mappings['tabColor'] = function ($value) { |
|
| 231 | + $this->mappings['tabColor'] = function($value) { |
|
| 232 | 232 | $this->object->getTabColor()->setRGB($value); |
| 233 | 233 | }; |
| 234 | - $this->mappings['zoomScale'] = function ($value) { |
|
| 234 | + $this->mappings['zoomScale'] = function($value) { |
|
| 235 | 235 | $this->object->getSheetView()->setZoomScale($value); |
| 236 | 236 | }; |
| 237 | 237 | } |
@@ -71,167 +71,221 @@ |
||
| 71 | 71 | protected function initializeMappings() |
| 72 | 72 | { |
| 73 | 73 | $this->mappings['columnDimension']['__multi'] = true; |
| 74 | - $this->mappings['columnDimension']['__object'] = function ($key = 'default') { |
|
| 74 | + $this->mappings['columnDimension']['__object'] = function ($key = 'default') |
|
| 75 | + { |
|
| 75 | 76 | return $key === 'default' ? $this->object->getDefaultColumnDimension() : $this->object->getColumnDimension($key); |
| 76 | 77 | }; |
| 77 | - $this->mappings['columnDimension']['autoSize'] = function ($key, $value) { |
|
| 78 | + $this->mappings['columnDimension']['autoSize'] = function ($key, $value) |
|
| 79 | + { |
|
| 78 | 80 | $this->mappings['columnDimension']['__object']($key)->setAutoSize($value); |
| 79 | 81 | }; |
| 80 | - $this->mappings['columnDimension']['collapsed'] = function ($key, $value) { |
|
| 82 | + $this->mappings['columnDimension']['collapsed'] = function ($key, $value) |
|
| 83 | + { |
|
| 81 | 84 | $this->mappings['columnDimension']['__object']($key)->setCollapsed($value); |
| 82 | 85 | }; |
| 83 | - $this->mappings['columnDimension']['columnIndex'] = function ($key, $value) { |
|
| 86 | + $this->mappings['columnDimension']['columnIndex'] = function ($key, $value) |
|
| 87 | + { |
|
| 84 | 88 | $this->mappings['columnDimension']['__object']($key)->setColumnIndex($value); |
| 85 | 89 | }; |
| 86 | - $this->mappings['columnDimension']['outlineLevel'] = function ($key, $value) { |
|
| 90 | + $this->mappings['columnDimension']['outlineLevel'] = function ($key, $value) |
|
| 91 | + { |
|
| 87 | 92 | $this->mappings['columnDimension']['__object']($key)->setOutlineLevel($value); |
| 88 | 93 | }; |
| 89 | - $this->mappings['columnDimension']['visible'] = function ($key, $value) { |
|
| 94 | + $this->mappings['columnDimension']['visible'] = function ($key, $value) |
|
| 95 | + { |
|
| 90 | 96 | $this->mappings['columnDimension']['__object']($key)->setVisible($value); |
| 91 | 97 | }; |
| 92 | - $this->mappings['columnDimension']['width'] = function ($key, $value) { |
|
| 98 | + $this->mappings['columnDimension']['width'] = function ($key, $value) |
|
| 99 | + { |
|
| 93 | 100 | $this->mappings['columnDimension']['__object']($key)->setWidth($value); |
| 94 | 101 | }; |
| 95 | - $this->mappings['columnDimension']['xfIndex'] = function ($key, $value) { |
|
| 102 | + $this->mappings['columnDimension']['xfIndex'] = function ($key, $value) |
|
| 103 | + { |
|
| 96 | 104 | $this->mappings['columnDimension']['__object']($key)->setXfIndex($value); |
| 97 | 105 | }; |
| 98 | - $this->mappings['pageMargins']['top'] = function ($value) { |
|
| 106 | + $this->mappings['pageMargins']['top'] = function ($value) |
|
| 107 | + { |
|
| 99 | 108 | $this->object->getPageMargins()->setTop($value); |
| 100 | 109 | }; |
| 101 | - $this->mappings['pageMargins']['bottom'] = function ($value) { |
|
| 110 | + $this->mappings['pageMargins']['bottom'] = function ($value) |
|
| 111 | + { |
|
| 102 | 112 | $this->object->getPageMargins()->setBottom($value); |
| 103 | 113 | }; |
| 104 | - $this->mappings['pageMargins']['left'] = function ($value) { |
|
| 114 | + $this->mappings['pageMargins']['left'] = function ($value) |
|
| 115 | + { |
|
| 105 | 116 | $this->object->getPageMargins()->setLeft($value); |
| 106 | 117 | }; |
| 107 | - $this->mappings['pageMargins']['right'] = function ($value) { |
|
| 118 | + $this->mappings['pageMargins']['right'] = function ($value) |
|
| 119 | + { |
|
| 108 | 120 | $this->object->getPageMargins()->setRight($value); |
| 109 | 121 | }; |
| 110 | - $this->mappings['pageMargins']['header'] = function ($value) { |
|
| 122 | + $this->mappings['pageMargins']['header'] = function ($value) |
|
| 123 | + { |
|
| 111 | 124 | $this->object->getPageMargins()->setHeader($value); |
| 112 | 125 | }; |
| 113 | - $this->mappings['pageMargins']['footer'] = function ($value) { |
|
| 126 | + $this->mappings['pageMargins']['footer'] = function ($value) |
|
| 127 | + { |
|
| 114 | 128 | $this->object->getPageMargins()->setFooter($value); |
| 115 | 129 | }; |
| 116 | - $this->mappings['pageSetup']['fitToHeight'] = function ($value) { |
|
| 130 | + $this->mappings['pageSetup']['fitToHeight'] = function ($value) |
|
| 131 | + { |
|
| 117 | 132 | $this->object->getPageSetup()->setFitToHeight($value); |
| 118 | 133 | }; |
| 119 | - $this->mappings['pageSetup']['fitToPage'] = function ($value) { |
|
| 134 | + $this->mappings['pageSetup']['fitToPage'] = function ($value) |
|
| 135 | + { |
|
| 120 | 136 | $this->object->getPageSetup()->setFitToPage($value); |
| 121 | 137 | }; |
| 122 | - $this->mappings['pageSetup']['fitToWidth'] = function ($value) { |
|
| 138 | + $this->mappings['pageSetup']['fitToWidth'] = function ($value) |
|
| 139 | + { |
|
| 123 | 140 | $this->object->getPageSetup()->setFitToWidth($value); |
| 124 | 141 | }; |
| 125 | - $this->mappings['pageSetup']['horizontalCentered'] = function ($value) { |
|
| 142 | + $this->mappings['pageSetup']['horizontalCentered'] = function ($value) |
|
| 143 | + { |
|
| 126 | 144 | $this->object->getPageSetup()->setHorizontalCentered($value); |
| 127 | 145 | }; |
| 128 | - $this->mappings['pageSetup']['orientation'] = function ($value) { |
|
| 146 | + $this->mappings['pageSetup']['orientation'] = function ($value) |
|
| 147 | + { |
|
| 129 | 148 | $this->object->getPageSetup()->setOrientation($value); |
| 130 | 149 | }; |
| 131 | - $this->mappings['pageSetup']['paperSize'] = function ($value) { |
|
| 150 | + $this->mappings['pageSetup']['paperSize'] = function ($value) |
|
| 151 | + { |
|
| 132 | 152 | $this->object->getPageSetup()->setPaperSize($value); |
| 133 | 153 | }; |
| 134 | - $this->mappings['pageSetup']['printArea'] = function ($value) { |
|
| 154 | + $this->mappings['pageSetup']['printArea'] = function ($value) |
|
| 155 | + { |
|
| 135 | 156 | $this->object->getPageSetup()->setPrintArea($value); |
| 136 | 157 | }; |
| 137 | - $this->mappings['pageSetup']['scale'] = function ($value) { |
|
| 158 | + $this->mappings['pageSetup']['scale'] = function ($value) |
|
| 159 | + { |
|
| 138 | 160 | $this->object->getPageSetup()->setScale($value); |
| 139 | 161 | }; |
| 140 | - $this->mappings['pageSetup']['verticalCentered'] = function ($value) { |
|
| 162 | + $this->mappings['pageSetup']['verticalCentered'] = function ($value) |
|
| 163 | + { |
|
| 141 | 164 | $this->object->getPageSetup()->setVerticalCentered($value); |
| 142 | 165 | }; |
| 143 | - $this->mappings['printGridlines'] = function ($value) { |
|
| 166 | + $this->mappings['printGridlines'] = function ($value) |
|
| 167 | + { |
|
| 144 | 168 | $this->object->setPrintGridlines($value); |
| 145 | 169 | }; |
| 146 | - $this->mappings['protection']['autoFilter'] = function ($value) { |
|
| 170 | + $this->mappings['protection']['autoFilter'] = function ($value) |
|
| 171 | + { |
|
| 147 | 172 | $this->object->getProtection()->setAutoFilter($value); |
| 148 | 173 | }; |
| 149 | - $this->mappings['protection']['deleteColumns'] = function ($value) { |
|
| 174 | + $this->mappings['protection']['deleteColumns'] = function ($value) |
|
| 175 | + { |
|
| 150 | 176 | $this->object->getProtection()->setDeleteColumns($value); |
| 151 | 177 | }; |
| 152 | - $this->mappings['protection']['deleteRows'] = function ($value) { |
|
| 178 | + $this->mappings['protection']['deleteRows'] = function ($value) |
|
| 179 | + { |
|
| 153 | 180 | $this->object->getProtection()->setDeleteRows($value); |
| 154 | 181 | }; |
| 155 | - $this->mappings['protection']['formatCells'] = function ($value) { |
|
| 182 | + $this->mappings['protection']['formatCells'] = function ($value) |
|
| 183 | + { |
|
| 156 | 184 | $this->object->getProtection()->setFormatCells($value); |
| 157 | 185 | }; |
| 158 | - $this->mappings['protection']['formatColumns'] = function ($value) { |
|
| 186 | + $this->mappings['protection']['formatColumns'] = function ($value) |
|
| 187 | + { |
|
| 159 | 188 | $this->object->getProtection()->setFormatColumns($value); |
| 160 | 189 | }; |
| 161 | - $this->mappings['protection']['formatRows'] = function ($value) { |
|
| 190 | + $this->mappings['protection']['formatRows'] = function ($value) |
|
| 191 | + { |
|
| 162 | 192 | $this->object->getProtection()->setFormatRows($value); |
| 163 | 193 | }; |
| 164 | - $this->mappings['protection']['insertColumns'] = function ($value) { |
|
| 194 | + $this->mappings['protection']['insertColumns'] = function ($value) |
|
| 195 | + { |
|
| 165 | 196 | $this->object->getProtection()->setInsertColumns($value); |
| 166 | 197 | }; |
| 167 | - $this->mappings['protection']['insertHyperlinks'] = function ($value) { |
|
| 198 | + $this->mappings['protection']['insertHyperlinks'] = function ($value) |
|
| 199 | + { |
|
| 168 | 200 | $this->object->getProtection()->setInsertHyperlinks($value); |
| 169 | 201 | }; |
| 170 | - $this->mappings['protection']['insertRows'] = function ($value) { |
|
| 202 | + $this->mappings['protection']['insertRows'] = function ($value) |
|
| 203 | + { |
|
| 171 | 204 | $this->object->getProtection()->setInsertRows($value); |
| 172 | 205 | }; |
| 173 | - $this->mappings['protection']['objects'] = function ($value) { |
|
| 206 | + $this->mappings['protection']['objects'] = function ($value) |
|
| 207 | + { |
|
| 174 | 208 | $this->object->getProtection()->setObjects($value); |
| 175 | 209 | }; |
| 176 | - $this->mappings['protection']['password'] = function ($value) { |
|
| 210 | + $this->mappings['protection']['password'] = function ($value) |
|
| 211 | + { |
|
| 177 | 212 | $this->object->getProtection()->setPassword($value); |
| 178 | 213 | }; |
| 179 | - $this->mappings['protection']['pivotTables'] = function ($value) { |
|
| 214 | + $this->mappings['protection']['pivotTables'] = function ($value) |
|
| 215 | + { |
|
| 180 | 216 | $this->object->getProtection()->setPivotTables($value); |
| 181 | 217 | }; |
| 182 | - $this->mappings['protection']['scenarios'] = function ($value) { |
|
| 218 | + $this->mappings['protection']['scenarios'] = function ($value) |
|
| 219 | + { |
|
| 183 | 220 | $this->object->getProtection()->setScenarios($value); |
| 184 | 221 | }; |
| 185 | - $this->mappings['protection']['selectLockedCells'] = function ($value) { |
|
| 222 | + $this->mappings['protection']['selectLockedCells'] = function ($value) |
|
| 223 | + { |
|
| 186 | 224 | $this->object->getProtection()->setSelectLockedCells($value); |
| 187 | 225 | }; |
| 188 | - $this->mappings['protection']['selectUnlockedCells'] = function ($value) { |
|
| 226 | + $this->mappings['protection']['selectUnlockedCells'] = function ($value) |
|
| 227 | + { |
|
| 189 | 228 | $this->object->getProtection()->setSelectUnlockedCells($value); |
| 190 | 229 | }; |
| 191 | - $this->mappings['protection']['sheet'] = function ($value) { |
|
| 230 | + $this->mappings['protection']['sheet'] = function ($value) |
|
| 231 | + { |
|
| 192 | 232 | $this->object->getProtection()->setSheet($value); |
| 193 | 233 | }; |
| 194 | - $this->mappings['protection']['sort'] = function ($value) { |
|
| 234 | + $this->mappings['protection']['sort'] = function ($value) |
|
| 235 | + { |
|
| 195 | 236 | $this->object->getProtection()->setSort($value); |
| 196 | 237 | }; |
| 197 | - $this->mappings['rightToLeft'] = function ($value) { |
|
| 238 | + $this->mappings['rightToLeft'] = function ($value) |
|
| 239 | + { |
|
| 198 | 240 | $this->object->setRightToLeft($value); |
| 199 | 241 | }; |
| 200 | 242 | $this->mappings['rowDimension']['__multi'] = true; |
| 201 | - $this->mappings['rowDimension']['__object'] = function ($key) { |
|
| 243 | + $this->mappings['rowDimension']['__object'] = function ($key) |
|
| 244 | + { |
|
| 202 | 245 | return $key === 'default' ? $this->object->getDefaultRowDimension() : $this->object->getRowDimension($key); |
| 203 | 246 | }; |
| 204 | - $this->mappings['rowDimension']['collapsed'] = function ($key, $value) { |
|
| 247 | + $this->mappings['rowDimension']['collapsed'] = function ($key, $value) |
|
| 248 | + { |
|
| 205 | 249 | $this->mappings['rowDimension']['__object']($key)->setCollapsed($value); |
| 206 | 250 | }; |
| 207 | - $this->mappings['rowDimension']['outlineLevel'] = function ($key, $value) { |
|
| 251 | + $this->mappings['rowDimension']['outlineLevel'] = function ($key, $value) |
|
| 252 | + { |
|
| 208 | 253 | $this->mappings['rowDimension']['__object']($key)->setOutlineLevel($value); |
| 209 | 254 | }; |
| 210 | - $this->mappings['rowDimension']['rowHeight'] = function ($key, $value) { |
|
| 255 | + $this->mappings['rowDimension']['rowHeight'] = function ($key, $value) |
|
| 256 | + { |
|
| 211 | 257 | $this->mappings['rowDimension']['__object']($key)->setRowHeight($value); |
| 212 | 258 | }; |
| 213 | - $this->mappings['rowDimension']['rowIndex'] = function ($key, $value) { |
|
| 259 | + $this->mappings['rowDimension']['rowIndex'] = function ($key, $value) |
|
| 260 | + { |
|
| 214 | 261 | $this->mappings['rowDimension']['__object']($key)->setRowIndex($value); |
| 215 | 262 | }; |
| 216 | - $this->mappings['rowDimension']['visible'] = function ($key, $value) { |
|
| 263 | + $this->mappings['rowDimension']['visible'] = function ($key, $value) |
|
| 264 | + { |
|
| 217 | 265 | $this->mappings['rowDimension']['__object']($key)->setVisible($value); |
| 218 | 266 | }; |
| 219 | - $this->mappings['rowDimension']['xfIndex'] = function ($key, $value) { |
|
| 267 | + $this->mappings['rowDimension']['xfIndex'] = function ($key, $value) |
|
| 268 | + { |
|
| 220 | 269 | $this->mappings['rowDimension']['__object']($key)->setXfIndex($value); |
| 221 | 270 | }; |
| 222 | - $this->mappings['rowDimension']['zeroHeight'] = function ($key, $value) { |
|
| 271 | + $this->mappings['rowDimension']['zeroHeight'] = function ($key, $value) |
|
| 272 | + { |
|
| 223 | 273 | $this->mappings['rowDimension']['__object']($key)->setZeroHeight($value); |
| 224 | 274 | }; |
| 225 | - $this->mappings['sheetState'] = function ($value) { |
|
| 275 | + $this->mappings['sheetState'] = function ($value) |
|
| 276 | + { |
|
| 226 | 277 | $this->object->setSheetState($value); |
| 227 | 278 | }; |
| 228 | - $this->mappings['showGridlines'] = function ($value) { |
|
| 279 | + $this->mappings['showGridlines'] = function ($value) |
|
| 280 | + { |
|
| 229 | 281 | $this->object->setShowGridlines($value); |
| 230 | 282 | }; |
| 231 | - $this->mappings['tabColor'] = function ($value) { |
|
| 283 | + $this->mappings['tabColor'] = function ($value) |
|
| 284 | + { |
|
| 232 | 285 | $this->object->getTabColor()->setRGB($value); |
| 233 | 286 | }; |
| 234 | - $this->mappings['zoomScale'] = function ($value) { |
|
| 287 | + $this->mappings['zoomScale'] = function ($value) |
|
| 288 | + { |
|
| 235 | 289 | $this->object->getSheetView()->setZoomScale($value); |
| 236 | 290 | }; |
| 237 | 291 | } |