Re: Attributes support proposal

From: Date: Mon, 18 Apr 2005 15:37:40 +0000
Subject: Re: Attributes support proposal
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-16003@lists.php.net to get a copy of this message
Hendy Irawan wrote:
database because the metadata is already built-in. Just a rough sketch: [columnType: "VARCHAR", size: 20] public $name; [columnType: "DATE"] public $birthDate;
We do exactly this in PHP 4 already. The base class gets the meta-data from the DB and stores it in $this->_fields. No special language features needed, not even Reflection ;-) I'm with Wez that I yet have to see a killer application of such a feature. - Chris

« previous php.internals (#16003) next »