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
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 &
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
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
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
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
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
7 matches
Mail list logo