Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:873 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 19107 invoked from network); 12 Apr 2003 09:29:27 -0000 Received: from unknown (HELO mail.digarc.com) (216.204.113.51) by pb1.pair.com with SMTP; 12 Apr 2003 09:29:27 -0000 Received: from ctd01 (dsta-aa203.pivot.net [66.186.171.203]) by mail.digarc.com (8.11.6/8.11.2) with SMTP id h3CBJ8707535 for ; Sat, 12 Apr 2003 07:19:09 -0400 Message-ID: <017101c300d6$a674ce20$06dea8c0@cyberware.local> To: References: <75071E79-6B95-11D7-96AD-000393B2B3C0@omniti.com> Date: Sat, 12 Apr 2003 05:33:56 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Subject: 2 questions: getter/setter use and streams use From: rrichards@digarc.com ("Rob Richards") I am looking to use getter/setter functionality within classes in an extension. After going through the object_handler piece, it looks like the only way to implement it is by using a single function which then must handle performing the appropriate function based on the property that was passed in. The only examples I could see using this functionality were extensions which were working against external objects (such as the ones in the rpc extensions). Is this the only way to do this or are there any other calls that can be used (similar to the add_property_x calls but which would allow you to specify a function for the get/set)? If so, is it possible to use a hash table for each class which would have the property and a function so that when the property name is passed in to the _get/_set handler it can look up the property and then call the appropriate function? Now that being said how can a private hash be setup on a class basis and how is the memory destruction to be handled for a private hash? Last question concerns streams. How stable are streams at this point? Its been a while since I had seen talk about streams other than when they were first being introduced. We are possibly looking to implement some functionality using streams (not a priority in the extension at this point), but want to know wether it is something to consider or not. Thanks, Rob Richards