source/Application/Controller/AccountDownloadsController.php
protected function _prepareForTemplate($oOrderFileList)
    {
        $oOrderArticles = [];

        foreach ($oOrderFileList as $oOrderFile) {
            $sOrderArticleIdField = 'oxorderfiles__oxorderarticleid';
            $sOrderNumberField = 'oxorderfiles__oxordernr';
            $sOrderDateField = 'oxorderfiles__oxorderdate';
            $sOrderTitleField = 'oxorderfiles__oxarticletitle';
            $sOrderArticleId = $oOrderFile->$sOrderArticleIdField->value;
            $oOrderArticles[$sOrderArticleId]['oxordernr'] = $oOrderFile->$sOrderNumberField->value;
            $oOrderArticles[$sOrderArticleId]['oxorderdate'] = substr($oOrderFile->$sOrderDateField->value, 0, 16);
            $oOrderArticles[$sOrderArticleId]['oxarticletitle'] = $oOrderFile->$sOrderTitleField->value;
            $oOrderArticles[$sOrderArticleId]['oxorderfiles'][] = $oOrderFile;
        }

        return $oOrderArticles;
    }
protected function _prepareForTemplate($oOrderFileList)
    {
        $oOrderArticles = [];

        foreach ($oOrderFileList as $oOrderFile) {
            $sOrderArticleIdField = 'oxorderfiles__oxorderarticleid';
            $sOrderNumberField = 'oxorderfiles__oxordernr';
            $sOrderDateField = 'oxorderfiles__oxorderdate';
            $sOrderTitleField = 'oxorderfiles__oxarticletitle';
            $sOrderArticleId = $oOrderFile->$sOrderArticleIdField->value;
            $oOrderArticles[$sOrderArticleId]['oxordernr'] = $oOrderFile->$sOrderNumberField->value;
            $oOrderArticles[$sOrderArticleId]['oxorderdate'] = substr($oOrderFile->$sOrderDateField->value, 0, 16);
            $oOrderArticles[$sOrderArticleId]['oxarticletitle'] = $oOrderFile->$sOrderTitleField->value;
            $oOrderArticles[$sOrderArticleId]['oxorderfiles'][] = $oOrderFile;
        }

        return $oOrderArticles;
    }
protected function _prepareForTemplate ( $ oOrderFileList ) { $ oOrderArticles = [ ] ; foreach ( $ oOrderFileList as $ oOrderFile ) { $ sOrderArticleIdField = 'oxorderfiles__oxorderarticleid' ; $ sOrderNumberField = 'oxorderfiles__oxordernr' ; $ sOrderDateField = 'oxorderfiles__oxorderdate' ; $ sOrderTitleField = 'oxorderfiles__oxarticletitle' ; $ sOrderArticleId = $ oOrderFile -> $ sOrderArticleIdField -> value ; $ oOrderArticles [ $ sOrderArticleId ] [ 'oxordernr' ] = $ oOrderFile -> $ sOrderNumberField -> value ; $ oOrderArticles [ $ sOrderArticleId ] [ 'oxorderdate' ] = substr ( $ oOrderFile -> $ sOrderDateField -> value , 0 , 16 ) ; $ oOrderArticles [ $ sOrderArticleId ] [ 'oxarticletitle' ] = $ oOrderFile -> $ sOrderTitleField -> value ; $ oOrderArticles [ $ sOrderArticleId ] [ 'oxorderfiles' ] [ ] = $ oOrderFile ; } return $ oOrderArticles ; }
Returns prepared orders files list

@param \OxidEsales\Eshop\Application\Model\OrderFileList $oOrderFileList - list or orderfiles

@return array
Returns prepared orders files list