Quick Search:

View

Revision:

Diff

Diff from 1348 to:

Annotations

Annotate by Age | Author | Mixed | None
/fisheye/browse/osCommerce/trunk/oscommerce/admin/includes/classes/object_info.php

Annotated File View

hpdl
1
1 <?php
2 /*
mattice
151
3   $Id: object_info.php 1348 2007-03-05 22:13:23Z hpdl $
hpdl
1
4
5   osCommerce, Open Source E-Commerce Solutions
6   http://www.oscommerce.com
7
hpdl
1348
8   Copyright (c) 2007 osCommerce
hpdl
1
9
10   Released under the GNU General Public License
11 */
12
hpdl
1338
13   class osC_ObjectInfo {
hpdl
1348
14     var $_keys = array();
15
hpdl
1338
16     function osC_ObjectInfo($array) {
17       foreach ($array as $key => $value) {
hpdl
1348
18         $this->_keys[$key] = $value;
hpdl
1
19       }
20     }
hpdl
1338
21
hpdl
1348
22     function get($key) {
23       return $this->_keys[$key];
hpdl
1338
24     }
25
hpdl
1348
26     function getAll() {
27       return $this->_keys;
28     }
29       
hpdl
1338
30     function set($key, $value) {
hpdl
1348
31       $this->_keys[$key] = $value;
hpdl
1338
32     }
hpdl
1
33   }
34 ?>