TYPO3/Extbase/FAL/FalUtility.php
public static function findFileReferenceObjects(array $fileUids)
    {
        $entities = new ObjectStorage();

        if (!empty($fileUids)) {
            $resourceFactory = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Resource\\ResourceFactory');

            foreach ($fileUids as $uid) {
                $fileReference = $resourceFactory->getFileReferenceObject($uid);
                $entities->attach($fileReference->getProperties());
            }
        }

        return $entities;
    }
public static function findFileReferenceObjects(array $fileUids)
    {
        $entities = new ObjectStorage();

        if (!empty($fileUids)) {
            $resourceFactory = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Resource\\ResourceFactory');

            foreach ($fileUids as $uid) {
                $fileReference = $resourceFactory->getFileReferenceObject($uid);
                $entities->attach($fileReference->getProperties());
            }
        }

        return $entities;
    }
public static function findFileReferenceObjects ( array $ fileUids ) { $ entities = new ObjectStorage ( ) ; if ( ! empty ( $ fileUids ) ) { $ resourceFactory = GeneralUtility :: makeInstance ( 'TYPO3\\CMS\\Core\\Resource\\ResourceFactory' ) ; foreach ( $ fileUids as $ uid ) { $ fileReference = $ resourceFactory -> getFileReferenceObject ( $ uid ) ; $ entities -> attach ( $ fileReference -> getProperties ( ) ) ; } } return $ entities ; }
Finds FAL objects by uid

@param array $fileUids - Array of File-UIDs
@return \TYPO3\CMS\Extbase\Persistence\ObjectStorage
Finds FAL objects by uid