@@ 301-307 (lines=7) @@ | ||
298 | ||
299 | $result['fields_object'] = $data_header = ($this->_processInternalId)? array_merge($fields_object, ['internal_id']) : $fields_object; |
|
300 | ||
301 | $result['fields_property'] = array_filter($fields_property, function($input) use (&$data_header) { |
|
302 | if (1 == $input['enabled']) { |
|
303 | $data_header[] = $input['key']; |
|
304 | return true; |
|
305 | } |
|
306 | return false; |
|
307 | }); |
|
308 | ||
309 | $result['fields_additional'] = array_filter($fields_additional, function($input) use (&$data_header) { |
|
310 | if (1 == $input['enabled']) { |
|
@@ 309-315 (lines=7) @@ | ||
306 | return false; |
|
307 | }); |
|
308 | ||
309 | $result['fields_additional'] = array_filter($fields_additional, function($input) use (&$data_header) { |
|
310 | if (1 == $input['enabled']) { |
|
311 | $data_header[] = $input['key']; |
|
312 | return true; |
|
313 | } |
|
314 | return false; |
|
315 | }); |
|
316 | ||
317 | $result['fields_header'] = Yii::$container->invoke($this->_dataHeaderProcessor,['dh'=>$data_header]); |
|
318 |