RE: [phplib] where is the 'new' operator for 'Example_Session'? From: Taylor, Stewart (Stewart.Taylor <email protected>)
Date: 04/17/01

If you call the page open function
  page_open(array("sess"=>"Example_Session"));
code in page.inc will create the object for you.

-Stewart

-----Original Message-----
From: fabrizio.ermini <email protected> [mailto:fabrizio.ermini <email protected>]
Sent: 17 April 2001 17:49
To: Stefan Jösch; phplib <email protected>
Subject: Re: [phplib] where is the 'new' operator for 'Example_Session'?

> I'm relatively new to phplib, and I can't find the 'new' operator, which
> creates a new instance of the 'Example_Session' in local.inc, i.e. I'm
> missing a line like
>
> $Sess = new Example_Session();
>
> Could someone explain to me how object creation in phplib works?
>
local.inc simply include objects definition, but not actually
instanciate them.
The logic is that you create the objects only when and where you
need them. And there's a nice "starter" function that does all the
work of creatin the objects, or retrieving them from session
container if they already exist, and it's page_open() (in page.inc).

HTH, bye
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/

Fabrizio Ermini Alternate E-mail:
C.so Umberto, 7 faermini <email protected>
loc. Meleto Valdarno Mail on GSM: (keep it short!)
52020 Cavriglia (AR) faermini <email protected>

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>