proposal for HTML_QuickForm_select::numOptions()
| From: | Brad Hubbard | Date: | Wed, 16 Apr 2003 03:00:54 +0000 |
| Subject: | proposal for HTML_QuickForm_select::numOptions() | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-4941@lists.php.net to get a copy of this message | ||
Can I suggest a method be added to HTML_QuickForm_select to facillitate
retrieval of the number of options.
Perhaps something like;
// {{{ numOptions()
/**
* Returns the current number of options set
*
* @since 2.3
* @access public
* @return int
* @throws
*/
function numOptions()
{
return count( $this->_options );
} //end func numOptions
// }}}
Cheers,
Brad