Changeset 9236

Show
Ignore:
Timestamp:
08/12/08 07:59:39 (4 months ago)
Author:
afz
Message:

Update using registry set/deletekey methods in all core files

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/jaws/html/include/Jaws/Crypt.php

    r9235 r9236  
    5454            $result = $this->Generate_RSA_KeyPair($key_len, $this->wrapper); 
    5555            if (Jaws_Error::isError($result)) { 
    56                 $GLOBALS['app']->Registry->Set('enabled', 'false', 'Crypt'); 
     56                $GLOBALS['app']->Registry->Set('enabled', 'false', 'Jaws_Crypt'); 
    5757                $GLOBALS['app']->Registry->Commit('core'); 
    5858                if (isset($GLOBALS['log'])) { 
     
    6262            } 
    6363 
    64             $GLOBALS['app']->Registry->Set('pvt_key', $this->pvt_key->toString(), 'Crypt'); 
    65             $GLOBALS['app']->Registry->Set('pub_key', $this->pub_key->toString(), 'Crypt'); 
    66             $GLOBALS['app']->Registry->Set('key_start_date', time(), 'Crypt'); 
     64            $GLOBALS['app']->Registry->Set('pvt_key', $this->pvt_key->toString(), 'Jaws_Crypt'); 
     65            $GLOBALS['app']->Registry->Set('pub_key', $this->pub_key->toString(), 'Jaws_Crypt'); 
     66            $GLOBALS['app']->Registry->Set('key_start_date', time(), 'Jaws_Crypt'); 
    6767            $GLOBALS['app']->Registry->Commit('core'); 
    6868        } else { 
  • trunk/jaws/html/include/Jaws/Gadget.php

    r9235 r9236  
    485485            $GLOBALS['app']->Registry->Get('main_gadget') != $gadget 
    486486        ) { 
    487             $GLOBALS['app']->Registry->Set('/gadgets/' . $gadget . '/enabled', 'false'); 
     487            $GLOBALS['app']->Registry->Set('enabled', 'false', $gadget, JAWS_REGISTRY_GADGET); 
    488488        } 
    489489        $GLOBALS['app']->Registry->Commit('core'); //Commit all changes to core 
     
    528528        $model->UninstallACLs(); 
    529529 
    530         $GLOBALS['app']->Registry->DeleteKey('/gadgets/' . $gadget . '/enabled'); 
    531         $GLOBALS['app']->Registry->DeleteKey('/gadgets/' . $gadget . '/version'); 
    532         $GLOBALS['app']->Registry->DeleteKey('/gadgets/' . $gadget . '/requires'); 
     530        $GLOBALS['app']->Registry->DeleteKey('enabled',  $gadget, JAWS_REGISTRY_GADGET); 
     531        $GLOBALS['app']->Registry->DeleteKey('version',  $gadget, JAWS_REGISTRY_GADGET); 
     532        $GLOBALS['app']->Registry->DeleteKey('requires', $gadget, JAWS_REGISTRY_GADGET); 
    533533        $GLOBALS['app']->Registry->Commit($gadget); //Commit all changes 
    534534        $GLOBALS['app']->Registry->Commit('core'); //Commit all changes to core 
     
    598598            $pull = str_replace(',' . $gadget, '', $pull); 
    599599        } 
    600         $GLOBALS['app']->Registry->Set('/gadgets/enabled_items', $pull); 
     600        $GLOBALS['app']->Registry->Set('enabled_gadgets', $pull); 
    601601 
    602602        $gadgets = $GLOBALS['app']->Registry->Get('allowurl_gadgets'); 
     
    604604            $gadgets = str_replace(','.$gadget, '', $gadgets); 
    605605        } 
    606         $GLOBALS['app']->Registry->Set('/gadgets/allowurl_items', $gadgets); 
     606        $GLOBALS['app']->Registry->Set('allowurl_gadgets', $gadgets); 
    607607         
    608608        //Autoload stuff 
     
    611611            $gadgets = str_replace(','.$gadget, '', $gadgets); 
    612612        } 
    613         $GLOBALS['app']->Registry->Set('/gadgets/autoload_items', $gadgets); 
     613        $GLOBALS['app']->Registry->Set('autoload_gadgets', $gadgets); 
    614614 
    615615        //Delete the layout items 
     
    668668            if (!in_array($gadget, $gadgets)) { 
    669669                $data .= ',' . $gadget; 
    670                 $GLOBALS['app']->Registry->Set('/gadgets/allowurl_items', $data); 
     670                $GLOBALS['app']->Registry->Set('allowurl_gadgets', $data); 
    671671            } 
    672672        } elseif (in_array($gadget, $gadgets)) { 
     
    674674                $data = str_replace(','.$gadget, '', $data); 
    675675            } 
    676             $GLOBALS['app']->Registry->Set('/gadgets/allowurl_items', $data); 
     676            $GLOBALS['app']->Registry->Set('allowurl_gadgets', $data); 
    677677        } 
    678678 
     
    684684            if (!in_array($gadget, $gadgets)) { 
    685685                $data .= ',' . $gadget; 
    686                 $GLOBALS['app']->Registry->Set('/gadgets/autoload_items', $data); 
     686                $GLOBALS['app']->Registry->Set('autoload_gadgets', $data); 
    687687            } 
    688688        } elseif (in_array($gadget, $gadgets)) { 
     
    690690                $data = str_replace(','.$gadget, '', $data); 
    691691            } 
    692             $GLOBALS['app']->Registry->Set('/gadgets/autoload_items', $data); 
     692            $GLOBALS['app']->Registry->Set('autoload_gadgets', $data); 
    693693        } 
    694694 
     
    790790            if (!in_array($gadget, $gadgets)) { 
    791791                $data .= ',' . $gadget; 
    792                 $GLOBALS['app']->Registry->Set('/gadgets/allowurl_items', $data); 
     792                $GLOBALS['app']->Registry->Set('allowurl_gadgets', $data); 
    793793            } 
    794794        } 
     
    800800            if (!in_array($gadget, $gadgets)) { 
    801801                $data .= ',' . $gadget; 
    802                 $GLOBALS['app']->Registry->Set('/gadgets/autoload_items', $data); 
     802                $GLOBALS['app']->Registry->Set('autoload_gadgets', $data); 
    803803            } 
    804804        } 
  • trunk/jaws/html/include/Jaws/Plugin.php

    r9235 r9236  
    197197        $items = $GLOBALS['app']->Registry->Get('enabled_plugins'); 
    198198        if (!in_array($plugin, explode(',', $items))) { 
    199             $GLOBALS['app']->Registry->Set($pluginskey, $items.','.$plugin); 
     199            $GLOBALS['app']->Registry->Set('enabled_plugins', $items.','.$plugin); 
    200200        } 
    201201 
     
    270270        } 
    271271 
    272         $GLOBALS['app']->Registry->Set('/plugins/parse_text/enabled_items', $new); 
    273         $GLOBALS['app']->Registry->DeleteKey('/plugins/parse_text/' . $plugin . '/enabled'); 
    274         $GLOBALS['app']->Registry->DeleteKey('/plugins/parse_text/' . $plugin . '/use_in'); 
     272        $GLOBALS['app']->Registry->Set('enabled_plugins', $new); 
     273        $GLOBALS['app']->Registry->DeleteKey('enabled', $plugin, JAWS_REGISTRY_PLUGIN); 
     274        $GLOBALS['app']->Registry->DeleteKey('use_in',  $plugin, JAWS_REGISTRY_PLUGIN); 
    275275 
    276276        require_once $file;