src/ShopBundle/objects/TCMSInterface/TShopInterface_ImportOrderStatus.class.php
protected function ProcessRow($aRow)
    {
        // update order
        $sOrderNr = '';
        $sStatusCode = '';
        if (array_key_exists($this->GetParameter('sFieldOrderNr'), $aRow)) {
            $sOrderNr = $aRow[$this->GetParameter('sFieldOrderNr')];
        }
        if (array_key_exists($this->GetParameter('sFieldStatusCode'), $aRow)) {
            $sStatusCode = $aRow[$this->GetParameter('sFieldStatusCode')];
        }
        if (!empty($sOrderNr) && !empty($sStatusCode)) {
            $sDate = date('Y-m-d H:i:s');
            $oOrder = TdbShopOrder::GetNewInstance();
            if ($oOrder->LoadFromField('ordernumber', $sOrderNr)) { // order found.
                $oStatusData = new TPkgShopOrderStatusData($oOrder, $sStatusCode, time());
                $oStatus = new TPkgShopOrderStatusManager();
                $oStatus->addStatus($oStatusData);
            }
        }
    }
protected function ProcessRow($aRow)
    {
        // update order
        $sOrderNr = '';
        $sStatusCode = '';
        if (array_key_exists($this->GetParameter('sFieldOrderNr'), $aRow)) {
            $sOrderNr = $aRow[$this->GetParameter('sFieldOrderNr')];
        }
        if (array_key_exists($this->GetParameter('sFieldStatusCode'), $aRow)) {
            $sStatusCode = $aRow[$this->GetParameter('sFieldStatusCode')];
        }
        if (!empty($sOrderNr) && !empty($sStatusCode)) {
            $sDate = date('Y-m-d H:i:s');
            $oOrder = TdbShopOrder::GetNewInstance();
            if ($oOrder->LoadFromField('ordernumber', $sOrderNr)) { // order found.
                $oStatusData = new TPkgShopOrderStatusData($oOrder, $sStatusCode, time());
                $oStatus = new TPkgShopOrderStatusManager();
                $oStatus->addStatus($oStatusData);
            }
        }
    }
protected function ProcessRow ( $ aRow ) { // update order $ sOrderNr = '' ; $ sStatusCode = '' ; if ( array_key_exists ( $ this -> GetParameter ( 'sFieldOrderNr' ) , $ aRow ) ) { $ sOrderNr = $ aRow [ $ this -> GetParameter ( 'sFieldOrderNr' ) ] ; } if ( array_key_exists ( $ this -> GetParameter ( 'sFieldStatusCode' ) , $ aRow ) ) { $ sStatusCode = $ aRow [ $ this -> GetParameter ( 'sFieldStatusCode' ) ] ; } if ( ! empty ( $ sOrderNr ) && ! empty ( $ sStatusCode ) ) { $ sDate = date ( 'Y-m-d H:i:s' ) ; $ oOrder = TdbShopOrder :: GetNewInstance ( ) ; if ( $ oOrder -> LoadFromField ( 'ordernumber' , $ sOrderNr ) ) { // order found. $ oStatusData = new TPkgShopOrderStatusData ( $ oOrder , $ sStatusCode , time ( ) ) ; $ oStatus = new TPkgShopOrderStatusManager ( ) ; $ oStatus -> addStatus ( $ oStatusData ) ; } } }
process one row from the file.

@param array $aRow
process one row from the file .