Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

I surely do hope that's a syntax error. -- Larry Wall in <199710011752.KAA21624@wall.org>


devel / comp.lang.php / Re: a question on a PayPal's ReflectionUtil (Was: Re: a question on)

SubjectAuthor
o Re: a question on a PayPal's ReflectionUtil (Was: Re: a question on)V

1
Re: a question on a PayPal's ReflectionUtil (Was: Re: a question on)

<04a6eb3e-52ae-4593-b513-5ed7c567d5d3n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=9970&group=comp.lang.php#9970

  copy link   Newsgroups: comp.lang.php
X-Received: by 2002:a05:620a:5c:b0:742:7e2b:68d2 with SMTP id t28-20020a05620a005c00b007427e2b68d2mr6227427qkt.7.1679062066217;
Fri, 17 Mar 2023 07:07:46 -0700 (PDT)
X-Received: by 2002:a81:d302:0:b0:541:359c:103a with SMTP id
y2-20020a81d302000000b00541359c103amr4573750ywi.8.1679062065966; Fri, 17 Mar
2023 07:07:45 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.php
Date: Fri, 17 Mar 2023 07:07:45 -0700 (PDT)
In-Reply-To: <jftmv5FplujU1@mid.individual.net>
Injection-Info: google-groups.googlegroups.com; posting-host=85.253.157.133; posting-account=ogslnwoAAACd9vU9PADzlWBA81fSuNpL
NNTP-Posting-Host: 85.253.157.133
References: <864k12ertd.fsf@levado.to> <86r146dcxj.fsf@levado.to> <jftmv5FplujU1@mid.individual.net>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <04a6eb3e-52ae-4593-b513-5ed7c567d5d3n@googlegroups.com>
Subject: Re: a question on a PayPal's ReflectionUtil (Was: Re: a question on)
From: techfan5...@hotmail.com (V)
Injection-Date: Fri, 17 Mar 2023 14:07:46 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 3570
 by: V - Fri, 17 Mar 2023 14:07 UTC

Let's get to know each other. Me: http://kohtumispaik.000webhostapp.com/Infovahetusteks/dpic/1679061026.gif

Have a nice day......

On Friday, June 3, 2022 at 8:10:54 AM UTC+2, J.O. Aho wrote:
> On 02/06/2022 22.32, Meredith Montgomery wrote:
> > Sorry about the incomplete subject. I'm fixing that. I think I also
> > understood a bit more about the code I'm asking, so I'm going to add an
> > addendum. Sorry about this small mess.
> >
> > Meredith Montgomery <mmont...@levado.to> writes:
> >
> >> The file
> >>
> >> PayPal/Common/ReflectionUtil.php
> >>
> >> --- whose content I show entirely below --- seems to be a class with
> >> only static methods and static properties. Now, check the procedure
> >>
> >> public static function propertyAnnotations($class, $propertyName)
> >>
> >> It contains the chunk
> >>
> >> if (!($refl =& self::$propertiesRefl[$class][$propertyName])) {
> >> $getter = self::getter($class, $propertyName);
> >> $refl = new \ReflectionMethod($class, $getter);
> >> self::$propertiesRefl[$class][$propertyName] = $refl;
> >> }
> >>
> >> So $refl is instantiated and it is stored in
> >>
> >> self::$propertiesRefl[$class][$propertyName]
> >>
> >> which is a private static array. This means it cannot be acessed from
> >> the ``outside''. Also, no other chunk in this class uses
> >> $propertiesRefl.
> >>
> >> Question. Why are they storing $refl if nobody uses it all, not even
> >> the very class that defines it?
> >
> > Actually, it clearly does use $refl. It's used right at the first line
> > in the chunk above. It is set merely so the if-inner-code is only
> > executed once in its lifetime. Why? Can you just clarify to me what's
> > going on this class? I'm not understanding it too clearly. Thank you!
> Yes, the inner code in this section will be called once for each
> combination of "class" and "propertyName".
> The function will return a array of annotations (read a bit about it
> here: https://www.educba.com/php-annotations )
>
> It's most likely used to setup correct check for input values client
> side and maybe even for post value validation.
>
> --
>
> //Aho


devel / comp.lang.php / Re: a question on a PayPal's ReflectionUtil (Was: Re: a question on)

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor