public function getDynamicCount()
    {
        $intReturn = 0;

        if ($this->__dynamic) {
            $objCounters = $this->getCountersRecursive($this->getFields());

            foreach ($objCounters as $objCounter) {
                $intCounterValue = $objCounter->getValidator()->getValue();
                if ($intCounterValue > $intReturn) {
                    $intReturn = $intCounterValue;
                }
            }

            if ($intReturn > 0) {
                // Equalize all counter values inside this area
                foreach ($objCounters as $objCounter) {
                    $objCounter->setDefault($intReturn);
                }
            }
        }

        return $intReturn;
    }
public function getDynamicCount()
    {
        $intReturn = 0;

        if ($this->__dynamic) {
            $objCounters = $this->getCountersRecursive($this->getFields());

            foreach ($objCounters as $objCounter) {
                $intCounterValue = $objCounter->getValidator()->getValue();
                if ($intCounterValue > $intReturn) {
                    $intReturn = $intCounterValue;
                }
            }

            if ($intReturn > 0) {
                // Equalize all counter values inside this area
                foreach ($objCounters as $objCounter) {
                    $objCounter->setDefault($intReturn);
                }
            }
        }

        return $intReturn;
    }
public function getDynamicCount ( ) { $ intReturn = 0 ; if ( $ this -> __dynamic ) { $ objCounters = $ this -> getCountersRecursive ( $ this -> getFields ( ) ) ; foreach ( $ objCounters as $ objCounter ) { $ intCounterValue = $ objCounter -> getValidator ( ) -> getValue ( ) ; if ( $ intCounterValue > $ intReturn ) { $ intReturn = $ intCounterValue ; } } if ( $ intReturn > 0 ) { // Equalize all counter values inside this area foreach ( $ objCounters as $ objCounter ) { $ objCounter -> setDefault ( $ intReturn ) ; } } } return $ intReturn ; }
Get the dynamic counter value if this is an dynamic area.
@return integer Defaults to 0 if not an dynamic area. If dynamic, this returns the number of times the user
duplicated this area.
Get the dynamic counter value if this is an dynamic area .