Tobyn Baugher [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 03, 2002 1:58 PM
To: php list
Subject: RE: [PHP] Question regarding :: syntax
On Mon, 2002-06-03 at 13:42, Jared Boelens wrote:
> This may be a dumb question but, how can you be sure that the $this-> is
> referring to the parent cla
On Mon, 2002-06-03 at 13:42, Jared Boelens wrote:
> This may be a dumb question but, how can you be sure that the $this-> is
> referring to the parent classes' property and not the current class. On
> that note, does it really matter of which one it refers?
B inherits $b from A. $this->b and "pa
D]]
Sent: Monday, June 03, 2002 12:58 PM
To: php list
Subject: RE: [PHP] Question regarding :: syntax
On Mon, 2002-06-03 at 12:45, Jared Boelens wrote:
> So am i to understand that i will have to do it in this manner?
*SNIP*
No no no... B extends A, and you have an instance of B. Just do thi
On Mon, 2002-06-03 at 12:45, Jared Boelens wrote:
> So am i to understand that i will have to do it in this manner?
*SNIP*
No no no... B extends A, and you have an instance of B. Just do this:
class A
{
var $b;
*snip*
}
class B
{
function B($b)
{
From: Tobyn Baugher [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 03, 2002 12:30 PM
To: php list
Subject: Re: [PHP] Question regarding :: syntax
On Mon, 2002-06-03 at 12:06, Jared Boelens wrote:
> Is there not a way to refer directly to the parent properties? Or do i
have
> to setup a get
- Original Message -
From: "Jared Boelens" <[EMAIL PROTECTED]>
To: "php list" <[EMAIL PROTECTED]>
Sent: Monday, June 03, 2002 5:20 PM
Subject: RE: [PHP] CHM Form Of PHP Manual? (Was: [PHP] Question regarding ::
syntax)
> The CHM version of the help fi
On Mon, 2002-06-03 at 12:06, Jared Boelens wrote:
> Is there not a way to refer directly to the parent properties? Or do i have
> to setup a get function for every parent var that I want to access.
Tis my understanding that you cannot refer to class properties without
an instance of the class.
::
syntax)
- Original Message -
From: "Jared Boelens" <[EMAIL PROTECTED]>
To: "php list" <[EMAIL PROTECTED]>
Sent: Monday, June 03, 2002 5:06 PM
Subject: [PHP] Question regarding :: syntax
> According to the CHM manual:
There's a CHM form of a
- Original Message -
From: "Jared Boelens" <[EMAIL PROTECTED]>
To: "php list" <[EMAIL PROTECTED]>
Sent: Monday, June 03, 2002 5:06 PM
Subject: [PHP] Question regarding :: syntax
> According to the CHM manual:
There's a CHM form of a PHP manual?
According to the CHM manual:
"Sometimes it is useful to refer to functions and variables in base classes
or to refer to functions in classes that have not yet any instances.:
Using parent::foo() works fine but I am having problems getting the variable
part of this to work.
For Example:
class A
10 matches
Mail list logo