Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:56878 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 38452 invoked from network); 12 Dec 2011 03:02:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Dec 2011 03:02:40 -0000 Authentication-Results: pb1.pair.com smtp.mail=guilhermeblanco@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=guilhermeblanco@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.170 as permitted sender) X-PHP-List-Original-Sender: guilhermeblanco@gmail.com X-Host-Fingerprint: 209.85.161.170 mail-gx0-f170.google.com Received: from [209.85.161.170] ([209.85.161.170:56506] helo=mail-gx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 48/60-36053-ECE65EE4 for ; Sun, 11 Dec 2011 22:02:39 -0500 Received: by ggnv1 with SMTP id v1so5418410ggn.29 for ; Sun, 11 Dec 2011 19:02:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=GZSpmREsQHzSPUggIuvj7lbybEJ28SvdrVb4fQ6tHvs=; b=OWCnwABTM7hVKcw+cMdmLUfjNoKKUzBZAHQVwPvVjxOp2YJRL4SkYSlgEcfGifj7ak ciMj2wfEGtcxY9gdk6KreVGZm6oFTqo3BqTVQou+X7bts9/WKkpkB+Mmf1R9IpDc30VH pyTzSWTrjnTrf22hvBGkCEFug5Uf4/PQtDXao= Received: by 10.182.50.65 with SMTP id a1mr2507734obo.17.1323658954255; Sun, 11 Dec 2011 19:02:34 -0800 (PST) MIME-Version: 1.0 Received: by 10.182.77.194 with HTTP; Sun, 11 Dec 2011 19:02:13 -0800 (PST) In-Reply-To: <9570D903A3BECE4092E924C2985CE4853995598C@MBX202.domain.local> References: <9570D903A3BECE4092E924C2985CE485399554D7@MBX202.domain.local> <7070130643313812382@unknownmsgid> <9570D903A3BECE4092E924C2985CE4853995589C@MBX202.domain.local> <9570D903A3BECE4092E924C2985CE48539955910@MBX202.domain.local> <9570D903A3BECE4092E924C2985CE4853995598C@MBX202.domain.local> Date: Sun, 11 Dec 2011 22:02:13 -0500 Message-ID: To: Clint M Priest Cc: Pierre Joye , "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Accessors v2 Patch From: guilhermeblanco@gmail.com ("guilhermeblanco@gmail.com") I have just one question, partially unrelated. How can I make something similar to Interceptors of Java according to your approach? For those that have no idea, interceptors is a way to intercept get/set of a property inside the class and act under this circumstance. []s, On Sun, Dec 11, 2011 at 8:01 PM, Clint M Priest wrote= : > To be complete I should probably add something to the reflection system a= s well. =C2=A0At present the getters/setters would show up as functions. > > What would be preferable? > 1) Show up as regular functions and let users fend for themselves? > 2) Hide from getMethods() and: > =C2=A02.1) Provide getAccessors() - Probably returning a new ReflectionPr= opertyAccessor class? > =C2=A02.2) Provide getGetters(), getSetters() > 3) Modify ReflectionProperty to include hasGetter() and hasSetter() > > Comments? > > -----Original Message----- > From: Pierre Joye [mailto:pierre.php@gmail.com] > Sent: Sunday, December 11, 2011 6:47 PM > To: Clint M Priest > Cc: internals@lists.php.net > Subject: Re: [PHP-DEV] Accessors v2 Patch > > oh right, I missed them. Yes, so it is covered as well :) > > On Mon, Dec 12, 2011 at 1:42 AM, Clint M Priest wro= te: >> There are already two tests against private read and private write, shou= ld I add two for protected as well? > > Cheers, > -- > Pierre > > @pierrejoye | http://blog.thepimp.net | http://www.libgd.org > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > --=20 Guilherme Blanco MSN: guilhermeblanco@hotmail.com GTalk: guilhermeblanco Toronto - ON/Canada