OOP Get Parent data

From: Date: Thu, 11 Mar 2004 15:12:26 +0000
Subject: OOP Get Parent data
Groups: php.general 
Request: Send a blank email to php-general+get-180162@lists.php.net to get a copy of this message
Hi everybody, In the code below are three x-char in the function parent_test of the class browser. What do I have to type there when I want to get the var $test from the session-object. class session { var $test="TEST"; var $browser; function init() { $this->browser = new browser; } } class browser { function parent_test() { return xxx; } } I tried $this->parent->test but it doesn't work. Can anybody help me? Rolf /////////////////////////////////////////////// / 640K ought to be enough for anybody. / / Bill Gates '81 / ///////////////////////////////////////////////

« previous php.general (#180162) next »