protected function csvObjectData($object)
{
$o = [];
foreach ($object->getClass()->getFieldDefinitions() as $key => $value) {
//exclude remote owner fields
if (!($value instanceof Object\ClassDefinition\Data\Relations\AbstractRelations and $value->isRemoteOwner())) {
$o[$key] = $value->getForCsvExport($object);
}
}
$o["id (system)"] = $object->getId();
$o["key (system)"] = $object->getKey();
$o["fullpath (system)"] = $object->getRealFullPath();
$o["published (system)"] = $object->isPublished();
$o["type (system)"] = $object->getType();
return $o;
}