, Heimspiel GmbH * @package Vhs * @subpackage Utility */ class ResourceUtility { /** * Fixes a bug in TYPO3 6.2.0 that the properties metadata is not overlayed on localization. * * @param File $file * @return array */ public static function getFileArray(File $file) { $properties = $file->getProperties(); $stat = $file->getStorage()->getFileInfo($file); $array = $file->toArray(); foreach ($properties as $key => $value) { $array[$key] = $value; } foreach ($stat as $key => $value) { $array[$key] = $value; } return $array; } }