note 49380 rejected from keyword.parent by cece
| From: | cece@php.net | Date: | Wed, 26 Jan 2005 09:36:19 +0000 |
| Subject: | note 49380 rejected from keyword.parent by cece | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-84008@lists.php.net to get a copy of this message | ||
Note Submitter: Martin
----
How can I call a methode of parrent class?
Class master {
var object;
var dataInfo;
Function master () {
$this->object = new client ( $this );
} /* End Function */
Function GetData() {
return ( $this->dataInfo );
} /* End Function */
} /* End Class */
Class client {
var parentThis;
Function client ( $this ) {
$this->parentThis = $this;
} /* End Function */
Function WhoIsYouMaster() {
Echo $this->parentThis->GetData();
} /* End Function */
} /* End Class */