| | 109 | * Add a new registry key |
|---|
| | 110 | * |
|---|
| | 111 | * @access public |
|---|
| | 112 | * @param string $key The key |
|---|
| | 113 | * @param string $value The value |
|---|
| | 114 | * @param string $comp Component's name |
|---|
| | 115 | * @param integer $type Component's type |
|---|
| | 116 | */ |
|---|
| | 117 | function AddRegKey($key, $value, $comp = '', $type = JAWS_COMPONENT_GADGET) |
|---|
| | 118 | { |
|---|
| | 119 | $comp = empty($comp)? $this->_Name : $comp; |
|---|
| | 120 | return $GLOBALS['app']->Registry->NewKey($key, $value, $comp, $type); |
|---|
| | 121 | } |
|---|
| | 122 | |
|---|
| | 123 | /** |
|---|
| | 124 | * Search for a key in the registry |
|---|
| | 125 | * |
|---|
| | 126 | * @access public |
|---|
| | 127 | * @param string $key The key |
|---|
| | 128 | * @param string $comp Component's name |
|---|
| | 129 | * @return string The value of the key |
|---|
| | 130 | */ |
|---|
| | 131 | function GetRegKey($key, $comp = '') |
|---|
| | 132 | { |
|---|
| | 133 | $comp = empty($comp)? $this->_Name : $comp; |
|---|
| | 134 | return $GLOBALS['app']->Registry->Get($key, $comp); |
|---|
| | 135 | } |
|---|
| | 136 | |
|---|
| | 137 | /** |
|---|
| | 138 | * Updates the value of a registry key |
|---|
| | 139 | * |
|---|
| | 140 | * @access public |
|---|
| | 141 | * @param string $key The key |
|---|
| | 142 | * @param string $value The value |
|---|
| | 143 | * @param string $comp Component's name |
|---|
| | 144 | */ |
|---|
| | 145 | function SetRegKey($key, $value, $comp = '') |
|---|
| | 146 | { |
|---|
| | 147 | $comp = empty($comp)? $this->_Name : $comp; |
|---|
| | 148 | return $GLOBALS['app']->Registry->Set($key, $value, $comp); |
|---|
| | 149 | } |
|---|
| | 150 | |
|---|
| | 151 | /** |
|---|
| | 152 | * Delete a registry key |
|---|
| | 153 | * |
|---|
| | 154 | * @access public |
|---|
| | 155 | * @param string $key The key |
|---|
| | 156 | * @param string $comp Component's name |
|---|
| | 157 | */ |
|---|
| | 158 | function DelRegKey($key, $comp = '') |
|---|
| | 159 | { |
|---|
| | 160 | $comp = empty($comp)? $this->_Name : $comp; |
|---|
| | 161 | return $GLOBALS['app']->Registry->DeleteKey($key, $comp); |
|---|
| | 162 | } |
|---|
| | 163 | |
|---|
| | 164 | /** |
|---|