PEAR and interfaces

From: Date: Thu, 04 Jan 2007 20:57:54 +0000
Subject: PEAR and interfaces
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-45417@lists.php.net to get a copy of this message
Hey all, sorry if this is repeatitive, and if it is please point me to the good documentation but I was wondering if it was ever discussed before. The use of interface and it's structure in pear. Currently what I have done is something like this (package: Path_MainPackage) Path_MainPackage: Interface: -------------------- interface Path_MainPackage_Interface { } -------------------- MainPackage class: ----------------------- require_once 'Path/MainPackage/interface/MainPackageInterface.php'; class Path_MainPackage implements Path_MainPackage_Interface { } ----------------------- Let me know if this is the good structure used for PEAR or what shoudl be used if it is not. Thanks. -- David Coallier, Founder & Software Architect, Agora Production (http://agoraproduction.com) 51.42.06.70.18

« previous php.pear.dev (#45417) next »