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

Request #2535 Getting a list of element names and their rules
Submitted: 2004-10-15 13:51 UTC
From: strauchdieb at gmx dot de Assigned: avb
Status: Closed Package: HTML_QuickForm2
PHP Version: Irrelevant OS: Irrelevant
Roadmaps: (Not assigned)    
Subscription  


 [2004-10-15 13:51 UTC] strauchdieb at gmx dot de
Description: ------------ I want to retrieve the element names as an array. I wrote a method getElementNames() that returns the keys of $_elementIndex This is especially useful in addition to the new insertElementBefore function. Furthermore I want to get a list of rules for each element. For this I wrote the method getElementRules() that returns the $_rules array. I made a diff patch with the current stable version of HTML_QuickForm. You can see it at http://www.gildehaus-hannover.de/QuickForm.diff

Comments

 [2004-10-15 17:57 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!
 [2004-10-16 00:04 UTC] strauchdieb at gmx dot de
I am building an editor for forms where you can enter labels, element types and validation in a tabular view (one row = one table element). After submitting these values, I want to iterate over the elements for setting each label, type and validation rule. Without the element names it's difficult to iterate over the form elements. Additionally, if you want to change the element order, you have to know the original order, which element comes after each element. So the element list is only one possibility to get iteration capabilities. If you want a more DOM-like approach, I could implement something like nextElement (similar to nextSibling).
 [2006-06-08 13:16 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!
 [2010-10-07 19:21 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!