Re: [PHP] var static

2003-08-28 Thread Jordan S. Jones
nguage.variables.scope.php (espero que te sirva) saludos aniceto lópez :: DYNAMICAL.BIZ web development & host services Barcelona - Spain -Mensaje original- Asunto: [PHP] var static I want to obtain only one instance of one class. In other to do that, I call to a static method, that creates

Re: [PHP] var static

2003-08-28 Thread Robert Cummings
Globals!? YUCK :) A better solution IMHO that maintains encapsulation, is to use a static var in a function: function &getClassVar( $name ) { return getAndSetClassVar( $name, false ); } function &setClassVar( $name, $value ) { return getAndSetClassVar( $name, true, $value ); } function &

Re: [PHP] var static

2003-08-28 Thread Alvaro Martinez
et/manual/en/language.variables.scope.php (espero que te sirva) saludos aniceto lópez :: DYNAMICAL.BIZ web development & host services Barcelona - Spain -Mensaje original- Asunto: [PHP] var static I want to obtain only one instance of one class. In other to do that, I call to a

Re: [PHP] var static

2003-08-28 Thread Tom Rogers
Hi, Friday, August 29, 2003, 3:01:45 AM, you wrote: AM> I want to obtain only one instance of one class. In other to do that, I call AM> to a static method, that creates the instance(if it doesnt exit) or returns AM> the reference of the instance. AM> The call to the static method is the next: AM

RE: [PHP] var static

2003-08-28 Thread Dynamical.biz
pain -Mensaje original- Asunto: [PHP] var static I want to obtain only one instance of one class. In other to do that, I call to a static method, that creates the instance(if it doesnt exit) or returns the reference of the instance. The call to the static method is the next: $conexiond

[PHP] var static

2003-08-28 Thread Alvaro Martinez
I want to obtain only one instance of one class. In other to do that, I call to a static method, that creates the instance(if it doesnt exit) or returns the reference of the instance. The call to the static method is the next: $conexiondb=db::getInstancia(); Well, but if I call to db::getInsta

[PHP] var static

2003-08-28 Thread Alvaro Martinez
I want to obtain only one instance of one class. In other to do that, I call to a static method, that creates the instance(if it doesnt exit) or returns the reference of the instance. The call to the static method is the next: $conexiondb=db::getInstancia(); Well, but if I call to db::getInsta