Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:16081 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 87103 invoked by uid 1010); 25 Apr 2005 17:13:00 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 87088 invoked from network); 25 Apr 2005 17:13:00 -0000 Received: from unknown (HELO pb1.pair.com) (127.0.0.1) by localhost with SMTP; 25 Apr 2005 17:13:00 -0000 X-Host-Fingerprint: 195.226.6.9 darkcity.gna.ch Linux 2.4/2.6 Received: from ([195.226.6.9:39140] helo=darkcity.gna.ch) by pb1.pair.com (ecelerity 1.2.12rc1 r(5476:5477)) with SMTP id 40/72-22714-B152D624 for ; Mon, 25 Apr 2005 13:13:00 -0400 Received: from localhost (localhost [127.0.0.1]) by darkcity.gna.ch (Postfix) with ESMTP id F201919E5E9; Mon, 25 Apr 2005 19:12:55 +0200 (CEST) Received: from unknown by localhost (amavisd-new, unix socket) id client-XXdMnq2T; Mon, 25 Apr 2005 19:12:54 +0200 (CEST) Received: by darkcity.gna.ch (Postfix, from userid 65534) id AAA4B19E5E8; Mon, 25 Apr 2005 19:12:54 +0200 (CEST) Received: from [192.168.1.44] (217-162-171-232.dclient.hispeed.ch [217.162.171.232]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by darkcity.gna.ch (Postfix) with ESMTP id 0664D1861FE; Mon, 25 Apr 2005 19:12:53 +0200 (CEST) Message-ID: <426D2517.6020304@cschneid.com> Date: Mon, 25 Apr 2005 19:12:55 +0200 User-Agent: Mozilla Thunderbird 0.8 (X11/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Duncan McIntyre Cc: internals@lists.php.net References: <200504251330.27509.duncan@calligram.co.uk> <426D1ACB.3070609@cschneid.com> <200504251748.32569.duncan@calligram.co.uk> In-Reply-To: <200504251748.32569.duncan@calligram.co.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on darkcity.gna.ch X-Spam-Level: * X-Spam-Status: No, score=2.0 required=5.0 tests=AWL,RCVD_IN_NJABL_DUL, RCVD_IN_SORBS_DUL autolearn=disabled version=3.0.2 X-Virus-Scanned: by amavisd-new at gna.ch Subject: Re: Attributes support proposal From: cschneid@cschneid.com (Christian Schneider) 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