Re: Attributes support proposal
| From: | Christian Schneider | Date: | Mon, 25 Apr 2005 17:12:55 +0000 |
| Subject: | Re: Attributes support proposal | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-16081@lists.php.net to get a copy of this message | ||
Duncan McIntyre wrote:
It's different because in your example there is no way of knowing that $AllowableValues refers to $WidgetType.My solution would be var $attributes = array( 'accountType' => array( 'Type' => "Select", 'AllowableValues' => array("Current","Savings") ) ); with a central attribute definition or alternatively var $attributes_accountType = array( 'Type' => "Select", 'AllowableValues' => array("Current","Savings") ); But then again I think the whole thing is typical OO bloat anyway and that's why I don't want to have language features added for it (-:C Over and out, - Chris