Newsgroups: php.general,php.internals Path: news.php.net Xref: news.php.net php.general:178955 php.internals:8178 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 59688 invoked by uid 1010); 26 Feb 2004 19:02:37 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 59642 invoked by uid 1007); 26 Feb 2004 19:02:36 -0000 Message-ID: <20040226190236.59641.qmail@pb1.pair.com> To: php-general@lists.php.net, internals@lists.php.net Followup-To: php.general Reply-To: news@eecoo.de Date: Thu, 26 Feb 2004 19:58:38 +0100 References: <20040226185122.34071.qmail@pb1.pair.com> <1077821587.403e409400404@www.3gstech.com> Lines: 37 User-Agent: KNode/0.7.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Posted-By: 217.230.89.55 Subject: Re: [PHP-DEV] PHP5: Class behavior: method overloading From: news@eecoo.de (Vivian Steller) Walter A. Boring IV wrote: > I say keep compatibility. If you want to enforce this, then declare an > interface. That is after all why they exist. > > Walt ... Would be nice if you could give a simple example - i really have problems working with interfaces :( My problem was to design a filesystem structure with classes like this: class Folder { var $name; var $path; function init() {} // should set $name and $path... function read($recursive = FALSE) {} // should read own content and eventually all subdirs } class File extends Folder { // inherited properties and funcs... function read() {} // should read the file content, $recursive is not needed } how could i implement my interfaces? I think interfaces wouldn't solve php4 compatibility problems... best regards, vivi