Changes between Version 9 and Version 10 of Jaws2/Internals/Jaws_Registry

Show
Ignore:
Author:
nicobn (IP: 169.254.0.2)
Timestamp:
08/05/07 22:12:02 (11 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Jaws2/Internals/Jaws_Registry

    v9 v10  
    11= Jaws_Registry core subsystem = 
    22'''Package''': Jaws API 
    3 '''File''': Jaws/Registry.php 
     3'''File''': Jaws/Registry.php and Jaws/Registry/Key.php 
    44'''Object''': {{{Jaws::$Registry}}} 
    55 
    6 The Jaws registry is used to store various dynamic configuration options. It can be rightfully compared 
    7 to the Windows registry as it is comprised of a series of keys with values associated. It is common  
    8 practice to group the options of a particular module into subsections of the registry and separate 
    9 each section by dots. 
     6The Jaws registry is used to store various dynamic configuration options. It can be rightfully compared to the Windows registry as it is comprised of a series of keys with values. It is common practice to group the options of a particular module into subsections. 
     7 
     8Internally, the Jaws registry uses the Doctrine nested sets feature. It is possible to create more than one root key for different usages but the default root key is called 'jaws'. The root key can have any number of subkeys and all subkeys can have any number of subkeys. 
     9 
     10== Loading == 
     11When the registry is loaded (unless it is loaded in {{{MODE_STRIP}}}), the Jaws root key is automatically loaded. 
     12 
     13== Access == 
     14To access a root key, the {{{Jaws_Registry::getRootKey()}}} method is used. All the subkeys can be accessed hierarchically, much like a Jaws_DataObject derivative: 
     15{{{ 
     16echo Jaws::$Registry->getRootKey('jaws')->a->foo->bar->key; 
     17}}} 
    1018 
    1119== Types == 
    1624 * Boolean ({{{Jaws_Registry::TYPE_BOOLEAN}}}) 
    1725 * Array ({{{Jaws_Registry::TYPE_ARRAY}}}) 
     26 * Subkey ({{{Jaws_Registry::TYPE_FOLDER}}}) 
    1827 
    1928== Create ==