|
ZenCart_Documentation
1.5.0
http://www.collinsharper.com
|
00001 <?php 00002 // 00003 // +----------------------------------------------------------------------+ 00004 // |zen-cart Open Source E-commerce | 00005 // +----------------------------------------------------------------------+ 00006 // | Copyright (c) 2003 The zen-cart developers | 00007 // | | 00008 // | http://www.zen-cart.com/index.php | 00009 // | | 00010 // | Portions Copyright (c) 2003 osCommerce | 00011 // +----------------------------------------------------------------------+ 00012 // | This source file is subject to version 2.0 of the GPL license, | 00013 // | that is bundled with this package in the file LICENSE, and is | 00014 // | available through the world-wide-web at the following url: | 00015 // | http://www.zen-cart.com/license/2_0.txt. | 00016 // | If you did not receive a copy of the zen-cart license and are unable | 00017 // | to obtain it through the world-wide-web, please send a note to | 00018 // | [email protected] so we can mail you a copy immediately. | 00019 // +----------------------------------------------------------------------+ 00020 // $Id: object_info.php 1969 2005-09-13 06:57:21Z drbyte $ 00021 // 00022 00023 class objectInfo { 00024 00025 // class constructor 00026 function objectInfo($object_array) { 00027 //this line should be added, but should be tested first: 00028 // if (!is_array($object_array)) return; 00029 reset($object_array); 00030 while (list($key, $value) = each($object_array)) { 00031 $this->$key = zen_db_prepare_input($value); 00032 } 00033 } 00034 } 00035 ?>