----- Original Message ----- 
From: listgroups08

Hi all,
        I am playing with classes for the first time and I am at a bit of a 
loss in php.
How do I access the properties/functions of the parent class from sub function?
And how do I register resources into the scope of the parent class?

<snip>
------------------------------------
I came up with this -

$parent_class = eval("&" . get_parent_class(this));
$sibling_class = eval("&" . get_parent_class(this) . '->sibling_name');
$parent_variable_scope = &get_class_vars(get_parent_class(this));

The first two should work as there returning references to the current instance 
of the prototyped class but I doubt the third would 
work because it most likely returns a reference to the original class before it 
is prototyped.

There must be a simpler way.

Is there any function or directive that works in the scope of a class like the 
'global' directive works in the environment scope?

I can't seem to find good information on directives (sometimes called 
primitives) in the php manual (php.net). Is there a page that 
lists directives?

Thanks. 

Reply via email to