Re: Joomla FrameWork ::

From: Date: Sun, 02 May 2010 14:52:24 +0000
Subject: Re: Joomla FrameWork ::
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-304843@lists.php.net to get a copy of this message
hi nick, :: is what we call 'scope resolution operator', $this is your 'current scope'. i guess you better read http://www.php.net/manual/en/language.oop5.php.. all sections :)) ~viraj On Sun, May 2, 2010 at 8:11 PM, Nick Balestra <nick@beyounic.com> wrote: > I am trying to understand how the joomla framework works, i see an heavy usage of  "  :: >  " in its code, here an example: > > function edit () >        { >                JRequest::setVar('view, 'single'); >                $this ->display(); >        } > > > from my really basic php understanding in the function edit i call a function setVar() and i > pass the paramter 'view' and 'single' in it then the output ($this) is passed to > the display() function. > > My question is what does :: means? an more precisely referring to the example: > JRequest::setVar('view, 'single');   how do you read it and how do you manage it? > > Cheers, Nick > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#304843) next »