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

        $this->validatePriceRule();
        $this->validateName();
        $this->validateWeight();
        $this->validateBool('status');
        $this->validateUsedPriceRule();
        $this->validateTriggerPriceRule();
        $this->validateCurrencyPriceRule();
        $this->validateValueTypePriceRule();
        $this->validateCodePriceRule();
        $this->validateValuePriceRule();

        $this->unsetSubmitted('update');

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

        $this->validatePriceRule();
        $this->validateName();
        $this->validateWeight();
        $this->validateBool('status');
        $this->validateUsedPriceRule();
        $this->validateTriggerPriceRule();
        $this->validateCurrencyPriceRule();
        $this->validateValueTypePriceRule();
        $this->validateCodePriceRule();
        $this->validateValuePriceRule();

        $this->unsetSubmitted('update');

        return $this->getResult();
    }
public function priceRule ( array & $ submitted , array $ options = array ( ) ) { $ this -> options = $ options ; $ this -> submitted = & $ submitted ; $ this -> validatePriceRule ( ) ; $ this -> validateName ( ) ; $ this -> validateWeight ( ) ; $ this -> validateBool ( 'status' ) ; $ this -> validateUsedPriceRule ( ) ; $ this -> validateTriggerPriceRule ( ) ; $ this -> validateCurrencyPriceRule ( ) ; $ this -> validateValueTypePriceRule ( ) ; $ this -> validateCodePriceRule ( ) ; $ this -> validateValuePriceRule ( ) ; $ this -> unsetSubmitted ( 'update' ) ; return $ this -> getResult ( ) ; }
Performs full price rule validation
@param array $submitted
@param array $options
@return array|boolean
Performs full price rule validation