Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:17530 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 70274 invoked by uid 1010); 4 Aug 2005 08:27:11 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 70259 invoked from network); 4 Aug 2005 08:27:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Aug 2005 08:27:11 -0000 X-Host-Fingerprint: 80.74.107.235 mail.zend.com Linux 2.5 (sometimes 2.4) (4) Received: from ([80.74.107.235:37279] helo=mail.zend.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 74/D5-04646-D51D1F24 for ; Thu, 04 Aug 2005 04:27:10 -0400 Received: (qmail 19823 invoked from network); 4 Aug 2005 08:27:42 -0000 Received: from shire.zend.office (10.1.2.160) by internal.zend.office with SMTP; 4 Aug 2005 08:27:42 -0000 Date: Thu, 4 Aug 2005 11:27:07 +0300 (IDT) X-X-Sender: frodo@shire.zend.office To: Derick Rethans cc: PHP Developers Mailing List In-Reply-To: Message-ID: References: <39FD64FE-3B15-4E66-A4CD-C392B666BD32@gravitonic.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] Property Overloading RFC From: stas@zend.com (Stanislav Malyshev) DR>>> How about a __have_prop() method that you can call to find out if a certain DR>>> virtual property exists? DR>> DR>>Works for me, but it needs to be able to called statically (::) and DR>>dynamically (->). I must be missing something, because I don't understand one simple thing: if you need mechanism that would allow you classes to know which properties they have, and you need custom logic to decide which properties exist, why don't you write an interface that has WhatAreMyProperties method and implement it in your classes and use it? Why bother with RFCs and all __magic stuff? -- Stanislav Malyshev, Zend Products Engineer stas@zend.com http://www.zend.com/ +972-3-6139665 ext.115