hpdl
|
1
|
1
|
<?php
|
|
2
|
/*
|
mattice
|
151
|
3
|
$Id: object_info.php 1498 2007-03-29 14:04:50Z 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
|
|
hpdl
|
1498
|
10
|
This program is free software; you can redistribute it and/or modify
|
|
11
|
it under the terms of the GNU General Public License v2 (1991)
|
|
12
|
as published by the Free Software Foundation.
|
hpdl
|
1
|
13
|
*/
|
|
14
|
|
hpdl
|
1338
|
15
|
class osC_ObjectInfo {
|
hpdl
|
1348
|
16
|
var $_keys = array();
|
|
17
|
|
hpdl
|
1338
|
18
|
function osC_ObjectInfo($array) {
|
|
19
|
foreach ($array as $key => $value) {
|
hpdl
|
1348
|
20
|
$this->_keys[$key] = $value;
|
hpdl
|
1
|
21
|
}
|
|
22
|
}
|
hpdl
|
1338
|
23
|
|
hpdl
|
1348
|
24
|
function get($key) {
|
|
25
|
return $this->_keys[$key];
|
hpdl
|
1338
|
26
|
}
|
|
27
|
|
hpdl
|
1348
|
28
|
function getAll() {
|
|
29
|
return $this->_keys;
|
|
30
|
}
|
|
31
|
|
hpdl
|
1338
|
32
|
function set($key, $value) {
|
hpdl
|
1348
|
33
|
$this->_keys[$key] = $value;
|
hpdl
|
1338
|
34
|
}
|
hpdl
|
1
|
35
|
}
|
|
36
|
?>
|