Changeset 1016
- Timestamp:
- 11/07/2007 05:36:53 PM (11 months ago)
- Files:
-
- 1 modified
-
trunk/system/libraries/View.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/libraries/View.php
r1015 r1016 76 76 * 77 77 * Parameters: 78 * name- variable name78 * key - variable name 79 79 * value - variable contents 80 80 */ 81 public function __set($ name, $value)81 public function __set($key, $value) 82 82 { 83 if ( ! isset($this->$ name))83 if ( ! isset($this->$key)) 84 84 { 85 $this->data[$ name] = $value;85 $this->data[$key] = $value; 86 86 } 87 87 } … … 92 92 * 93 93 * Parameters: 94 * name- variable name94 * key - variable name 95 95 * 96 96 * Returns: 97 97 * The variable contents or NULL if the variable does not exist 98 98 */ 99 public function __get($ name)99 public function __get($key) 100 100 { 101 return isset($this->data[$name]) ? $this->data[$name] : NULL; 101 if (isset($this->data[$key])) 102 { 103 return $this->data[$key]; 104 } 102 105 } 103 106
