Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 2.4.0

Request #1681 Better access to grouped elements
Submitted: 2004-06-19 11:41 UTC
From: fd at pyoworks dot com Assigned: avb
Status: Closed Package: HTML_QuickForm2
PHP Version: Irrelevant OS: linux
Roadmaps: 0.1.0    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 40 - 20 = ?

 
 [2004-06-19 11:41 UTC] fd at pyoworks dot com
Description: ------------ Hi, it would be nice if there was better access to grouped elements. E.g. $form->getElement("element_name") does not work if the "element_name" Element is part of a group. Also, it should be possible to add and delete elements to/from created groups. Anyway, nice work :) Florian

Comments

 [2004-09-09 13:17 UTC] frutik at ukr dot net
This patch to group.php is usefull for me to access to grouped elements. ** * Gets the grouped elements by variable name * * @since hack * @access public * @return false, reference or array of references to group's elements */ function &getGroupElement($search) { $return = false; foreach($this->_elements as $i => $element) { if ( $element->_attributes["name"] == $search) { $return[] =& $this->_elements[$i]; } } if ( is_array($return) && count($return) == 1 ) { return $return[0]; } return $return; }
 [2006-06-08 13:14 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2006-10-12 21:34 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!