Re: Package Scope Recommendations for File_Ogg

From: Date: Thu, 14 Aug 2003 16:05:55 +0000
Subject: Re: Package Scope Recommendations for File_Ogg
References: 1 2 3 4 5  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-19748@lists.php.net to get a copy of this message
David Grant wrote:
So to clarify: function foo() { ...
Correct? In this style yes. For your package i would suggest a kind of factory function, ie File_Ogg::file() which could returns a File_Ogg_PHP object if no extension is found or File_Ogg_Wrapper if an OggVorbis-Extension exists - as is named it is just a wrapper for the extension.


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