application/controllers/bestitamazoncron.php
protected function _getOrder()
    {
        $sOrderId = $this->_getContainer()->getConfig()->getRequestParameter('oxid');

        if ($sOrderId !== null) {
            /** @var oxOrder $oOrder */
            $oOrder = $this->_getContainer()->getObjectFactory()->createOxidObject('oxOrder');

            if ($oOrder->load($sOrderId) === true) {
                return $oOrder;
            }
        }

        return null;
    }
protected function _getOrder()
    {
        $sOrderId = $this->_getContainer()->getConfig()->getRequestParameter('oxid');

        if ($sOrderId !== null) {
            /** @var oxOrder $oOrder */
            $oOrder = $this->_getContainer()->getObjectFactory()->createOxidObject('oxOrder');

            if ($oOrder->load($sOrderId) === true) {
                return $oOrder;
            }
        }

        return null;
    }
protected function _getOrder ( ) { $ sOrderId = $ this -> _getContainer ( ) -> getConfig ( ) -> getRequestParameter ( 'oxid' ) ; if ( $ sOrderId !== null ) { /** @var oxOrder $oOrder */ $ oOrder = $ this -> _getContainer ( ) -> getObjectFactory ( ) -> createOxidObject ( 'oxOrder' ) ; if ( $ oOrder -> load ( $ sOrderId ) === true ) { return $ oOrder ; } } return null ; }
Method returns Order object

@return null|oxOrder
@throws oxSystemComponentException
Method returns Order object