Class: registry

The registry class offers a system to save registry variables. The variables are typed and can be set to be saved when luxinia shuts down. When Luxinia starts, the saved variables are loaded again and can be used. Environment variables should be used if you like to save preferences that should be loaded again if luxinia starts.
Luxinia knows 6 variable types: String, boolean, float, char, short and int.

Methods:

save (string name, [boolean save])
returns: ([boolean save])
if save is not set, the return value tells if the variable of type name is beeing saved when luxinia shuts down. If save is set to true, the variable will be saved. If the variable does not exist, nothing is returned.
var (string name, [string type, mixed value])
returns: ([string type, mixed value])
returns the type as string and the value of the variable of this name (if it exists), or creates a new variable of that name and given type.