Changeset 10004
- Timestamp:
- 11/22/08 13:02:37 (2 months ago)
- Files:
-
- trunk/jaws/html/include/Jaws/Gadget.php (modified) (1 diff)
- trunk/jaws/html/include/Jaws/Gadget/HTML.php (modified) (1 diff)
- trunk/jaws/html/include/Jaws/Gadget/Model.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/jaws/html/include/Jaws/Gadget.php
r9990 r10004 377 377 $result = (isset($this->_ValidAction['LayoutAction'])) ? $this->_ValidAction['LayoutAction'] : array(); 378 378 return $result; 379 } 380 381 /** 382 * Add a new registry key 383 * 384 * @access public 385 * @param string $key The key 386 * @param string $value The value 387 * @param string $comp Component's name 388 * @param integer $type Component's type 389 */ 390 function AddRegKey($key, $value, $comp = '', $type = JAWS_COMPONENT_GADGET) 391 { 392 $comp = empty($comp)? $this->_Name : $comp; 393 return $GLOBALS['app']->Registry->NewKey($key, $value, $comp, $type); 394 } 395 396 /** 397 * Search for a key in the registry 398 * 399 * @access public 400 * @param string $key The key 401 * @param string $comp Component's name 402 * @return string The value of the key 403 */ 404 function GetRegKey($key, $comp = '') 405 { 406 $comp = empty($comp)? $this->_Name : $comp; 407 return $GLOBALS['app']->Registry->Get($key, $comp); 408 } 409 410 /** 411 * Updates the value of a registry key 412 * 413 * @access public 414 * @param string $key The key 415 * @param string $value The value 416 * @param string $comp Component's name 417 */ 418 function SetRegKey($key, $value, $comp = '') 419 { 420 $comp = empty($comp)? $this->_Name : $comp; 421 return $GLOBALS['app']->Registry->Set($key, $value, $comp); 422 } 423 424 /** 425 * Delete a registry key 426 * 427 * @access public 428 * @param string $key The key 429 * @param string $comp Component's name 430 */ 431 function DelRegKey($key, $comp = '') 432 { 433 $comp = empty($comp)? $this->_Name : $comp; 434 return $GLOBALS['app']->Registry->DeleteKey($key, $comp); 379 435 } 380 436 trunk/jaws/html/include/Jaws/Gadget/HTML.php
r9214 r10004 9 9 * @license http://www.gnu.org/copyleft/lesser.html 10 10 */ 11 require_once JAWS_PATH . 'include/Jaws/Gadget.php'; 12 11 13 class Jaws_Gadget_HTML extends Jaws_Gadget 12 14 { trunk/jaws/html/include/Jaws/Gadget/Model.php
r10003 r10004 11 11 * @license http://www.gnu.org/copyleft/lesser.html 12 12 */ 13 require_once JAWS_PATH . 'include/Jaws/Gadget.php'; 14 13 15 class Jaws_Gadget_Model 14 16 { … … 104 106 { 105 107 return $this->_Description; 106 }107 108 /**109 * Add a new registry key110 *111 * @access public112 * @param string $key The key113 * @param string $value The value114 * @param string $comp Component's name115 * @param integer $type Component's type116 */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 registry125 *126 * @access public127 * @param string $key The key128 * @param string $comp Component's name129 * @return string The value of the key130 */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 key139 *140 * @access public141 * @param string $key The key142 * @param string $value The value143 * @param string $comp Component's name144 */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 key153 *154 * @access public155 * @param string $key The key156 * @param string $comp Component's name157 */158 function DelRegKey($key, $comp = '')159 {160 $comp = empty($comp)? $this->_Name : $comp;161 return $GLOBALS['app']->Registry->DeleteKey($key, $comp);162 108 } 163 109
