wrong?
The reason I want to use an interface is to define a preset definition
of what my classes should implement when they are designed using
specific design patterns.
Gavin
On Wed, 02 Mar 2005 03:17:59 +0100, Jochem Maas <[EMAIL PROTECTED]> wrote:
> Jason Barnett wrote:
> > Gavin R
Well yes and no, conceivably, the system has no idea what singletons
are out there other than what is specified in a configuration file.
You are in essence hard coding the class name in the switch.
Gavin
On Tue, 01 Mar 2005 17:47:24 -0500, Jason Barnett
<[EMAIL PROTECTED]> wrote:
> A switch sta
I have an interface:
interface ISingleton
{
static function getInstance();
}
that works in 5.0.3 but in 5.1 CVS I get the following error:
Fatal error: Access type for interface method
ISingleton::getInstance() must be omitted ...
If I take out the static keyword then it doesnt matc
I believe there is small problem in PHP5 with regard to static
functions in uninstanced classes. From discussions in various php irc
channels and what I've read about it in the docs, I can not call a
static function in an uninstanced class via a variable. For example:
$class = "MyClass";
$ins
4 matches
Mail list logo