Req #11209 [Ana->Csd]: Make options's visibility protected
| From: | borz_off at cs dot msu dot su | Date: | Sun, 27 Sep 2009 07:26:32 +0000 |
| Subject: | Req #11209 [Ana->Csd]: Make options's visibility protected | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-1740@lists.php.net to get a copy of this message | ||
Edit report at http://pear.php.net/bugs/bug.php?id=11209&edit=1
ID: 11209
Updated by: borz_off@cs.msu.su
Reported By: wiesemann at php dot net
Summary: Make options's visibility protected
-Status: Analyzed
+Status: Closed
Type: Feature/Change Request
Package: HTML_Common2
Operating System: Irrelevant
Package Version: 2.0.0beta1
PHP Version: 5.2.2
-Assigned To:
+Assigned To: avb
Roadmap Versions:
New Comment:
-Status: Analyzed
+Status: Closed
-Assigned To:
+Assigned To: avb
Implemented in release 2.0.0RC1
Previous Comments:
------------------------------------------------------------------------
[2009-04-06 22:34:25] wiesemann
Although I don't have any plans on HTML_Table2 anymore (there wasn't
much interest after annoucing its development), your suggestion is fine
with me. It might be a little "weird" to have getOption() (singular)
return an array of options (plural), though. Maybe you want to consider
to add a new getOptions() method (c.p. my original request).
------------------------------------------------------------------------
[2009-04-03 18:46:51] avb
-Status: Open
+Status: Analyzed
Looks like we already have protected $options in
HTML_QuickForm2_Element_Select_OptionContainer, so it won't be a good
idea to make the field protected in HTML_Common2
On the other hand, I can change getOption() to just return the array of
options if no $name is given. That'll be enough, I suppose.
------------------------------------------------------------------------
[2007-07-06 05:07:35] mansion
I wouldn't mind having getIndent() a public method as well.
------------------------------------------------------------------------
[2007-06-02 16:39:57] wiesemann
Description:
------------
I'd like to get away from several setter/getter methods in HTML_Table2.
Instead of e.g. having methods setAutoGrow()/getAutoGrow(), it would be
nice to use the $_options array. This would allow me to pass values (not
'autoGrow', but e.g. 'autoFill') to the various instances of the storage
class.
Would you be willing to rename $_options to $options and to mark is as
protected? (A protected getOptions() method would be another solution.)
Multiple getOption() calls don't seem like a clean solution to me.
------------------------------------------------------------------------
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=11209&edit=1