Kaynağa Gözat
Lot of cleaning in here. The commiting of this code is done with the
only purpose of throwing out some ideas that can, or cannot, be used
in sm2-api. The code is so green that I thought this was not going
to cause a big mess (Only Bunzo and I have commited code). Anyway
there is no problem to roll it back to initial Captain Bunzo's
proposal.
* In zkLoader I've moved the file requiring into a new method.
RequireCode Just in case we decide to sessionize services/modules.
* I've removed the imap messaging untill we get a more focussed
idea on how to do it.
* Imap authentication made without outside services. Needed
parameters are stored (for the moment) in a connector option.
* Added zkSS() it's a very simple counter used to give an unique
id to the services.
* Session registration proposal. This code uses a "standard" way
to sessionize persistent properties. This is done with a single
array named bag_reg and through the serialization of services.
This serialization allows to store concrete properties even if
the service is loaded twice. This "bag" is updated with Register
methods that places persistent information into the bag. This
method must be called each time one the porperties change.
* Two way pointers. In order to access the GranPa its pointer is
stored into a $zkld property in each service. The service pointer
is stored into a property module called $srv. I hope that actual
code is self explanatory enough to prove the need of such pointers.