public function getFileListData($sFieldName) {

        if(empty($sFieldName)) {
            return [];
        }

        /** @var Collection $obFileList */
        $obFileList = $this->$sFieldName;
        if($obFileList->isEmpty()) {
            return [];
        }
        
        $arResult = [];
        /** @var File $obFile */
        foreach($obFileList as $obFile) {
            if(empty($obFile) || !$obFile instanceof File) {
                continue;
            }
            
            $arResult[] = $this->getFileDataValue($obFile);
        }

        return $arResult;
    }
public function getFileListData($sFieldName) {

        if(empty($sFieldName)) {
            return [];
        }

        /** @var Collection $obFileList */
        $obFileList = $this->$sFieldName;
        if($obFileList->isEmpty()) {
            return [];
        }
        
        $arResult = [];
        /** @var File $obFile */
        foreach($obFileList as $obFile) {
            if(empty($obFile) || !$obFile instanceof File) {
                continue;
            }
            
            $arResult[] = $this->getFileDataValue($obFile);
        }

        return $arResult;
    }
public function getFileListData ( $ sFieldName ) { if ( empty ( $ sFieldName ) ) { return [ ] ; } /** @var Collection $obFileList */ $ obFileList = $ this -> $ sFieldName ; if ( $ obFileList -> isEmpty ( ) ) { return [ ] ; } $ arResult = [ ] ; /** @var File $obFile */ foreach ( $ obFileList as $ obFile ) { if ( empty ( $ obFile ) || ! $ obFile instanceof File ) { continue ; } $ arResult [ ] = $ this -> getFileDataValue ( $ obFile ) ; } return $ arResult ; }
Get file list data
@param $sFieldName
@return array
Get file list data