public function isMet($intDynamicPosition = 0)
    {
        $blnResult = false;

        switch ($this->__comparisontype) {
            default:
            case ValidForm::VFORM_MATCH_ANY:
				/* @var $objComparison Comparison */
				foreach ($this->__comparisons as $objComparison) {
                    if ($objComparison->check($intDynamicPosition)) {
                        $blnResult = true; // One of the comparisons is true, that's good enough.
                        break;
                    }
                }

                break;

            case ValidForm::VFORM_MATCH_ALL:
                $blnFailed = false;
				/* @var $objComparison Comparison */
                foreach ($this->__comparisons as $objComparison) {
                    if (!$objComparison->check($intDynamicPosition)) {
                        $blnFailed = true;
                        break;
                    }
                }

                $blnResult = !$blnFailed;

                break;
        }

        return $blnResult;
    }
public function isMet($intDynamicPosition = 0)
    {
        $blnResult = false;

        switch ($this->__comparisontype) {
            default:
            case ValidForm::VFORM_MATCH_ANY:
				/* @var $objComparison Comparison */
				foreach ($this->__comparisons as $objComparison) {
                    if ($objComparison->check($intDynamicPosition)) {
                        $blnResult = true; // One of the comparisons is true, that's good enough.
                        break;
                    }
                }

                break;

            case ValidForm::VFORM_MATCH_ALL:
                $blnFailed = false;
				/* @var $objComparison Comparison */
                foreach ($this->__comparisons as $objComparison) {
                    if (!$objComparison->check($intDynamicPosition)) {
                        $blnFailed = true;
                        break;
                    }
                }

                $blnResult = !$blnFailed;

                break;
        }

        return $blnResult;
    }
public function isMet ( $ intDynamicPosition = 0 ) { $ blnResult = false ; switch ( $ this -> __comparisontype ) { default : case ValidForm :: VFORM_MATCH_ANY : /* @var $objComparison Comparison */ foreach ( $ this -> __comparisons as $ objComparison ) { if ( $ objComparison -> check ( $ intDynamicPosition ) ) { $ blnResult = true ; // One of the comparisons is true, that's good enough. break ; } } break ; case ValidForm :: VFORM_MATCH_ALL : $ blnFailed = false ; /* @var $objComparison Comparison */ foreach ( $ this -> __comparisons as $ objComparison ) { if ( ! $ objComparison -> check ( $ intDynamicPosition ) ) { $ blnFailed = true ; break ; } } $ blnResult = ! $ blnFailed ; break ; } return $ blnResult ; }
Verify if the condition is met

@param int $intDynamicPosition Dynamic position of the field to verify
@return bool True if it is met, false if not
@throws \Exception
Verify if the condition is met