protected function validateSubtractProduct()
    {
        $field = 'subtract';
        $value = $this->getSubmitted($field);

        if (isset($value)) {
            $this->setSubmitted($field, filter_var($value, FILTER_VALIDATE_BOOLEAN));
        }

        return true;
    }
protected function validateSubtractProduct()
    {
        $field = 'subtract';
        $value = $this->getSubmitted($field);

        if (isset($value)) {
            $this->setSubmitted($field, filter_var($value, FILTER_VALIDATE_BOOLEAN));
        }

        return true;
    }
protected function validateSubtractProduct ( ) { $ field = 'subtract' ; $ value = $ this -> getSubmitted ( $ field ) ; if ( isset ( $ value ) ) { $ this -> setSubmitted ( $ field , filter_var ( $ value , FILTER_VALIDATE_BOOLEAN ) ) ; } return true ; }
Validates "Subtract" bool value
@return boolean
Validates Subtract bool value