application/controllers/bestitamazoncron.php
protected function _processOrderStates($sQuery, $sClientFunction)
    {
        $aResponses = array();
        $aResult = $this->_getContainer()->getDatabase()->getAll($sQuery);

        foreach ($aResult as $aRow) {
            $oOrder = $this->_getContainer()->getObjectFactory()->createOxidObject('oxOrder');

            if ($oOrder->load($aRow['OXID'])) {
                $oData = $this->_getContainer()->getClient()->{$sClientFunction}($oOrder);
                $aResponses[$aRow['OXORDERNR']] = $oData;
            }
        }

        return $aResponses;
    }
protected function _processOrderStates($sQuery, $sClientFunction)
    {
        $aResponses = array();
        $aResult = $this->_getContainer()->getDatabase()->getAll($sQuery);

        foreach ($aResult as $aRow) {
            $oOrder = $this->_getContainer()->getObjectFactory()->createOxidObject('oxOrder');

            if ($oOrder->load($aRow['OXID'])) {
                $oData = $this->_getContainer()->getClient()->{$sClientFunction}($oOrder);
                $aResponses[$aRow['OXORDERNR']] = $oData;
            }
        }

        return $aResponses;
    }
protected function _processOrderStates ( $ sQuery , $ sClientFunction ) { $ aResponses = array ( ) ; $ aResult = $ this -> _getContainer ( ) -> getDatabase ( ) -> getAll ( $ sQuery ) ; foreach ( $ aResult as $ aRow ) { $ oOrder = $ this -> _getContainer ( ) -> getObjectFactory ( ) -> createOxidObject ( 'oxOrder' ) ; if ( $ oOrder -> load ( $ aRow [ 'OXID' ] ) ) { $ oData = $ this -> _getContainer ( ) -> getClient ( ) -> { $ sClientFunction } ( $ oOrder ) ; $ aResponses [ $ aRow [ 'OXORDERNR' ] ] = $ oData ; } } return $ aResponses ; }
Processes the order states.

@param string $sQuery
@param string $sClientFunction

@return array
@throws oxSystemComponentException
@throws oxConnectionException
Processes the order states .