library/Garp/Form/SubForm/Array.php
public function isValid($data) {
        if (!is_array($data)) {
            throw new Zend_Form_Exception(__METHOD__ . ' expects an array');
        }

        $this->_incrementArray($data);
        return parent::isValid($data);
    }
public function isValid($data) {
        if (!is_array($data)) {
            throw new Zend_Form_Exception(__METHOD__ . ' expects an array');
        }

        $this->_incrementArray($data);
        return parent::isValid($data);
    }
public function isValid ( $ data ) { if ( ! is_array ( $ data ) ) { throw new Zend_Form_Exception ( __METHOD__ . ' expects an array' ) ; } $ this -> _incrementArray ( $ data ) ; return parent :: isValid ( $ data ) ; }
Upon validation, we can check if there have been dynamically added input
fields, and if so, create elements for them.
@return Boolean
Upon validation we can check if there have been dynamically added input fields and if so create elements for them .