public function cart(array &$submitted, array $options = array())
    {
        $this->options = $options;
        $this->submitted = &$submitted;

        $this->validateCart();
        $this->validateStoreId();
        $this->validateProductCart();
        $this->validateSkuCart();
        $this->validateUserCartId();
        $this->validateOrderCart();
        $this->validateQuantityCart();
        $this->validateOptionsCart();
        $this->validateLimitCart();
        $this->validateData();

        $this->unsetSubmitted('update');

        return $this->getResult();
    }
public function cart(array &$submitted, array $options = array())
    {
        $this->options = $options;
        $this->submitted = &$submitted;

        $this->validateCart();
        $this->validateStoreId();
        $this->validateProductCart();
        $this->validateSkuCart();
        $this->validateUserCartId();
        $this->validateOrderCart();
        $this->validateQuantityCart();
        $this->validateOptionsCart();
        $this->validateLimitCart();
        $this->validateData();

        $this->unsetSubmitted('update');

        return $this->getResult();
    }
public function cart ( array & $ submitted , array $ options = array ( ) ) { $ this -> options = $ options ; $ this -> submitted = & $ submitted ; $ this -> validateCart ( ) ; $ this -> validateStoreId ( ) ; $ this -> validateProductCart ( ) ; $ this -> validateSkuCart ( ) ; $ this -> validateUserCartId ( ) ; $ this -> validateOrderCart ( ) ; $ this -> validateQuantityCart ( ) ; $ this -> validateOptionsCart ( ) ; $ this -> validateLimitCart ( ) ; $ this -> validateData ( ) ; $ this -> unsetSubmitted ( 'update' ) ; return $ this -> getResult ( ) ; }
Performs full cart data validation
@param array $submitted
@param array $options
@return boolean|array
Performs full cart data validation