1. change table struct to (id, comp_name, comp_type, key_name, key_value, updatetime)
2. auto load and caching components registry keys(so not need use LoadFile? before use component registry keys)
3. auto detect changed registry keys of components, so auto commit registry keys:
function commit()
{
$components = func_get_args();
if (empty($components) {
// commit all detect components registry keys was changed
// Mass insert/update changes into DB if possible
} else {
// commit only components that passed to this method if was changed
// Mass insert/update changes into DB if possible
}
}
so only need call commit method.
4. Add new method to Jaws_gadget for Add/Set/Get/Del for use more easy of Jaws_Registry
in gadgets use code like this:
$this->AddRegKey('key_name', 'key_value');
$this->SetRegKey('key_name', 'key_value');
$this->GetRegKey('key_name');
$this->DelRegKey('key_name');
$this->GetRegKey('key_name', 'another component');
$this->SetRegKey('key_name', 'key_value', 'another component');