Quick Search:

Mode

Context

Displaying 3 lines of context. None | Less | More | Full

Other Diffs

Ignore

Blank Lines Whitespace:

Diff

1338
 
1348
 
1348
 
object_info.php
_> 11 <?php
  22 /*
<> 3 -  $Id: object_info.php 1338 2007-03-05 21:51:26Z hpdl $
   3+  $Id: object_info.php 1348 2007-03-05 22:13:23Z hpdl $
44 
  55   osCommerce, Open Source E-Commerce Solutions
  66   http://www.oscommerce.com
  77 
<> 8 -  Copyright (c) 2006 osCommerce
   8+  Copyright (c) 2007 osCommerce
99 
  1010   Released under the GNU General Public License
  1111 */
  1212 
  1313   class osC_ObjectInfo {
<>  14+    var $_keys = array();
   15+
1416     function osC_ObjectInfo($array) {
  1517       foreach ($array as $key => $value) {
<> 16 -        $this->$key = $value;
   18+        $this->_keys[$key] = $value;
1719       }
  1820     }
  1921 
<> 20 -    function get($value) {
  21 -      return $this->$value;
   22+    function get($key) {
   23+      return $this->_keys[$key];
2224     }
  2325 
<>  26+    function getAll() {
   27+      return $this->_keys;
   28+    }
   29+     
2430     function set($key, $value) {
<> 25 -      $this->$key = $value;
   31+      $this->_keys[$key] = $value;
<_ 2632     }
  2733   }
  2834 ?>