| Namespace: DEFAULT | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Var Info | Var Content | Clear | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Array ( [namespace] => DEFAULT [varname] => Num tests done [vartype] => integer [varpersist] => 1 ) |
1 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Array ( [namespace] => DEFAULT [varname] => Num of vars in registry [vartype] => integer [varpersist] => 1 ) |
1 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Array ( [namespace] => DEFAULT [varname] => ExampleVar [vartype] => string [varpersist] => 1 ) |
CHANGE ME TO SEE HOW IT WORKS | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Array ( [namespace] => DEFAULT [varname] => ExampleArray [vartype] => array [varpersist] => 1 ) |
Array ( [Name] => Bill [SurName] => Smith ) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Here are the list of all vars saved in current namespace. When you press 'Palin reload', current page are reloaded only with Namespace param, all vars are retrived from storage and can be accessed again. |
| Try to change default values or varnames with diferent values, When 'submit' button is pressed, vars are saved in it's storage. |
| You can save a class and would be accessed at any moment during current session, not needed to be contructed again. Here are a simple class, and you can see it's capabilities. |
| A class is constructed if not started before. Here an example ussing directly a class method:
Data_registry::init("DEFAULT")->getClass("testDR")->setData("VarName","Value") or use: Data_registry::init("DEFAULT","testDR")->setData("VarName","Value") |
| Any type of data can be stored, here an array example. |
| Add function, adding elements to an stored array. Very usefull if you plan to use Data_registry to store queries, execution times, errors, logs, etc... You will be able to retrieve all of then at any moment, not only in the current process. |
| You can create a new namespace, if exists, current namespace are changed by the one entered, if not, new namespace are created. |
| If you don't need data anymore, you can clear a namespace. |