private static function _findFormFields($data)
    {
        $ret = array();
        foreach ($data->getChildComponents(array('page'=>false, 'pseudoPage'=>false)) as $c) {
            if (Kwc_Abstract::getFlag($c->componentClass, 'formField')) {
                $ret[] = $c;
            }
            $ret = array_merge($ret, self::_findFormFields($c));
        }
        return $ret;
    }
private static function _findFormFields($data)
    {
        $ret = array();
        foreach ($data->getChildComponents(array('page'=>false, 'pseudoPage'=>false)) as $c) {
            if (Kwc_Abstract::getFlag($c->componentClass, 'formField')) {
                $ret[] = $c;
            }
            $ret = array_merge($ret, self::_findFormFields($c));
        }
        return $ret;
    }
private static function _findFormFields ( $ data ) { $ ret = array ( ) ; foreach ( $ data -> getChildComponents ( array ( 'page' => false , 'pseudoPage' => false ) ) as $ c ) { if ( Kwc_Abstract :: getFlag ( $ c -> componentClass , 'formField' ) ) { $ ret [ ] = $ c ; } $ ret = array_merge ( $ ret , self :: _findFormFields ( $ c ) ) ; } return $ ret ; }
don't use getRecursiveChildComponents as that won't return items in an defined order
don t use getRecursiveChildComponents as that won t return items in an defined order