[BNM] Dumb PHP question

Justin Wanstall lists at wanstall.co.uk
Sat Jun 2 12:29:28 BST 2007


Yeah sorry didn't mean to patronise you there! I figured since this was a
public list other people might benefit from that link even if you didn't
need it!

The '->' part is just how PHP calls the methods within the class. Your
assumption is correct, in your example the 'value' is a member of the class
initiated as $claim earlier in the code.  

Justin.

-----Original Message-----
From: Alan Newman [mailto:alan at sensibledevelopment.com] 
Sent: 02 June 2007 12:21
To: 'Brighton New Media'
Subject: Re: [BNM] Dumb PHP question

Hi,

Hi,

Yes, being a Java guy I understand OOP principals, but thanks for the
refresher!

(I think we need to save the debate on whether PHP is truly Object
Orientated or not for another time...)

;-)

Really, it's the notation - I assume "->" is it an operator of some sort?
What does it specifically mean?

Can I assume that in this example that -> just returns me a member of the
class - in this case "value" is a member of the class using the handle
"claim"?

Cheers

- Alan



-----Original Message-----
From: bnmlist-bounces at brightonnewmedia.org
[mailto:bnmlist-bounces at brightonnewmedia.org] On Behalf Of Justin Wanstall
Sent: 02 June 2007 12:11
To: 'Brighton New Media'
Subject: Re: [BNM] Dumb PHP question

The $claim part refers to an instance of a class which has been initiated
and the ->value is simply a value within that instance. It's Object Oriented
programming. 

http://en.wikipedia.org/wiki/Object-oriented_programming

Justin.

-----Original Message-----
From: Alan Newman [mailto:alan at sensibledevelopment.com] 
Sent: 02 June 2007 11:52
To: 'Brighton New Media'
Subject: [BNM] Dumb PHP question

Hi,

 

We have inherited a PHP UI for a back end application we are customizing and
I can't find an answer to this on the web, but I suspect I am just not
looking in the right places.

 

We are seeing this sort of expression a lot and are not sure what it is:

 

$claim->value

 

It seems to come up a lot - is it some sort of "injection" of one value in
to another? It would really help to know what is going in and would help out
us silly Java types a lot!

 

Cheers

 

- Alan

 

 

 

HYPERLINK "http://www.sensibledevelopment.com"www.sensibledevelopment.com -
scalable back end web development that looks good.

 

::email:: HYPERLINK
"mailto:alan at sensibledevelopment.com"alan at sensibledevelopment.com

::land:: +44 (0)1273 621110

::mobile:: +44 (0)7711 006551

 

 


No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.472 / Virus Database: 269.8.6/828 - Release Date: 01/06/2007
11:22
 
-- 


BNM Social - http://upcoming.yahoo.com/event/190648

BNM Subscribe/Unsubscribe:
http://lists.wessexnetworks.com/cgi-bin/mailman/options/bnmlist/
BNM info/archives:
http://www.brightonnewmedia.org/

BNM archive search:
http://www.roddis.org/bnm/search.php

BNM powered by Wessex Networks:
http://www.wessexnetworks.com

-- 


BNM Social - http://upcoming.yahoo.com/event/190648

BNM Subscribe/Unsubscribe:
http://lists.wessexnetworks.com/cgi-bin/mailman/options/bnmlist/
BNM info/archives:
http://www.brightonnewmedia.org/

BNM archive search:
http://www.roddis.org/bnm/search.php

BNM powered by Wessex Networks:
http://www.wessexnetworks.com

No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.472 / Virus Database: 269.8.6/828 - Release Date: 01/06/2007
11:22
 

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.472 / Virus Database: 269.8.6/828 - Release Date: 01/06/2007
11:22
 

-- 


BNM Social - http://upcoming.yahoo.com/event/190648

BNM Subscribe/Unsubscribe:
http://lists.wessexnetworks.com/cgi-bin/mailman/options/bnmlist/
BNM info/archives:
http://www.brightonnewmedia.org/

BNM archive search:
http://www.roddis.org/bnm/search.php

BNM powered by Wessex Networks:
http://www.wessexnetworks.com




More information about the BNMlist mailing list. Powered by Wessex Networks