protected function validateOrder()
    {
        $id = $this->getUpdatingId();

        if ($id === false) {
            return null;
        }

        $data = $this->order->get($id);

        if (empty($data)) {
            $this->setErrorUnavailable('update', $this->translation->text('Order'));
            return false;
        }

        $this->setUpdating($data);
        return true;
    }
protected function validateOrder()
    {
        $id = $this->getUpdatingId();

        if ($id === false) {
            return null;
        }

        $data = $this->order->get($id);

        if (empty($data)) {
            $this->setErrorUnavailable('update', $this->translation->text('Order'));
            return false;
        }

        $this->setUpdating($data);
        return true;
    }
protected function validateOrder ( ) { $ id = $ this -> getUpdatingId ( ) ; if ( $ id === false ) { return null ; } $ data = $ this -> order -> get ( $ id ) ; if ( empty ( $ data ) ) { $ this -> setErrorUnavailable ( 'update' , $ this -> translation -> text ( 'Order' ) ) ; return false ; } $ this -> setUpdating ( $ data ) ; return true ; }
Validates an order to be updated
@return boolean
Validates an order to be updated