protected function _exportData()
{
$data = $this->_entity ? $this->_entity->export() : $this->_data;
if (!($list = $this->_config['whitelist'])) {
return $data;
}
$list = array_combine($list, $list);
if (!$this->_entity) {
return array_intersect_key($data, $list);
}
foreach ($data as $type => $values) {
if (!is_array($values)) {
continue;
}
$data[$type] = array_intersect_key($values, $list);
}
return $data;
}